-
Notifications
You must be signed in to change notification settings - Fork 16.8k
feat: Add [logging] task_log_to_stdout config to forward task logs to worker stdout #64481
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -149,6 +149,7 @@ def _execute_work(log: Logger, workload: workloads.ExecuteTask, team_conf) -> No | |
| token=workload.token, | ||
| server=team_conf.get("core", "execution_api_server_url", fallback=default_execution_api_server), | ||
| log_path=workload.log_path, | ||
| subprocess_logs_to_stdout=team_conf.getboolean("logging", "task_log_to_stdout", fallback=False), | ||
| ) | ||
|
Comment on lines
149
to
153
|
||
|
|
||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -223,6 +223,7 @@ def execute_workload(input: str) -> None: | |
| token=workload.token, | ||
| server=conf.get("core", "execution_api_server_url", fallback=default_execution_api_server), | ||
| log_path=workload.log_path, | ||
| subprocess_logs_to_stdout=conf.getboolean("logging", "task_log_to_stdout", fallback=False), | ||
| ) | ||
|
Comment on lines
223
to
227
|
||
| elif isinstance(workload, workloads.ExecuteCallback): | ||
| success, error_msg = execute_callback_workload(workload.callback, log) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This introduces a new user-facing config option; please add a Towncrier newsfragment in
airflow-core/newsfragments/describing[logging] task_log_to_stdoutso it appears in the release notes (the PR template indicates this is expected for user-facing changes).