ashb commented on code in PR #46265:
URL: https://github.com/apache/airflow/pull/46265#discussion_r1934763726
##########
providers/celery/src/airflow/providers/celery/executors/celery_executor_utils.py:
##########
@@ -125,21 +126,54 @@ def on_celery_import_modules(*args, **kwargs):
import kubernetes.client # noqa: F401
[email protected]
-def execute_command(command_to_exec: CommandType) -> None:
- """Execute command."""
- dag_id, task_id =
BaseExecutor.validate_airflow_tasks_run_command(command_to_exec)
+# Once Celery5 is out of beta, we can pass `pydantic=True` to the decorator
and it will handle the validation
+# and deserialization for us
[email protected](name="execute_workload")
Review Comment:
This is a small thing, but by specifying the name here, it means this is
what shows up in the Celery logs, rather than
`airflow.providers.celery.executors.celery_executor_utils.execute_workload`!
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]