You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/09/07 11:49:25 UTC

[GitHub] [airflow] Jorricks commented on a change in pull request #17207: Fix external_executor_id not being set for manually run jobs.

Jorricks commented on a change in pull request #17207:
URL: https://github.com/apache/airflow/pull/17207#discussion_r703439552



##########
File path: airflow/executors/celery_executor.py
##########
@@ -81,14 +81,16 @@ def execute_command(command_to_exec: CommandType) -> None:
     """Executes command."""
     BaseExecutor.validate_command(command_to_exec)
     log.info("Executing command in Celery: %s", command_to_exec)
+    celery_task_id = str(app.current_task.request.id) if app.current_task.request.id else None
+    log.info(f"Found the following celery_task_id: {celery_task_id}")

Review comment:
       Changed :)




-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org