You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Feature: add json_logs config support for Celery worker stdout #68912
Setting AIRFLOW__LOGGING__JSON_LOGS=True has no effect on the Celery worker's stdout. The worker always emits plain-text logs. Other components (API server, core logging) already respect this setting, but celery_command.py calls configure_logging without passing json_output:
ifAIRFLOW_V_3_0_PLUS:
fromairflow.sdk.logimportconfigure_loggingconfigure_logging(output=sys.stdout.buffer) # json_output defaults to False
Proposed solution
Add a [celery] json_logs option for a celery-specific override, falling back to the existing [logging] json_logs — consistent with how [logging] CELERY_LOGGING_LEVEL / [logging] LOGGING_LEVEL already work in the same file:
Activity
Honor json_logs config in Celery worker startup (#68916)