Skip to content

Add support for forwarding CeleryExecutor task logs to stdout#69597

Open
jayachandrakasarla wants to merge 3 commits into
apache:mainfrom
jayachandrakasarla:celery-task-logs-to-stdout
Open

Add support for forwarding CeleryExecutor task logs to stdout#69597
jayachandrakasarla wants to merge 3 commits into
apache:mainfrom
jayachandrakasarla:celery-task-logs-to-stdout

Conversation

@jayachandrakasarla

Copy link
Copy Markdown
Contributor

Closes #69554

Currently, CeleryExecutor task logs are not forwarded to stdout because this behavior is hardcoded to false in BaseExecutor.run_workload().

This PR allows users to enable log forwarding by setting AIRFLOW__CELERY__TASK_LOGS_TO_STDOUT=True. By default, this setting remains false to preserve the existing behavior. When enabled, task logs are forwarded to stdout, allowing container-level log collectors to capture them.

Below is a screenshot of the Celery worker logs showing the task's stdout output.
image

Was generative AI tooling used to co-author this PR?
  • Yes (Claude Sonnet 4.6)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CeleryExecutor: no way to forward task logs to worker stdout (subprocess_logs_to_stdout hard-coded False)

1 participant