Skip to content
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

Make task log messages include run_id #39280

Merged
merged 2 commits into from
Apr 27, 2024
Merged

Make task log messages include run_id #39280

merged 2 commits into from
Apr 27, 2024

Conversation

RyuSA
Copy link
Contributor

@RyuSA RyuSA commented Apr 26, 2024

closes: #39272

This PR changes the TaskInstance log format which includes run_id.

  • Pausing task as DEFERRED: dag_id=Test1, task_id=task1, execution_date=..., start_date=...
    • Pausing task as DEFERRED: dag_id=Test1, task_id=task1, run_id=RUN_ID, execution_date=..., start_date=...
  • Marking task as SUCCESS: dag_id=Test1, task_id=task1, execution_date=..., start_date=..., end_date=...
    • Marking task as SUCCESS: dag_id=Test1, task_id=task1, run_id=RUN_ID, execution_date=..., start_date=..., end_date=...

^ Add meaningful description above
Read the Pull Request Guidelines for more information.
In case of fundamental code changes, an Airflow Improvement Proposal (AIP) is needed.
In case of a new dependency, check compliance with the ASF 3rd Party License Policy.
In case of backwards incompatible changes please leave a note in a newsfragment file, named {pr_number}.significant.rst or {issue_number}.significant.rst, in newsfragments.

Copy link
Contributor

@RNHTTR RNHTTR left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

love it!

@jedcunningham jedcunningham added the type:bug-fix Changelog: Bug Fixes label Apr 26, 2024
@jedcunningham jedcunningham added this to the Airflow 2.9.1 milestone Apr 26, 2024
@eladkal eladkal merged commit b977335 into apache:main Apr 27, 2024
41 checks passed
ephraimbuddy pushed a commit that referenced this pull request Apr 29, 2024
* Make task log messages include run_id

* apply format change (pre-commit)

(cherry picked from commit b977335)
@RyuSA RyuSA deleted the issue-39272 branch May 6, 2024 23:52
RodrigoGanancia pushed a commit to RodrigoGanancia/airflow that referenced this pull request May 10, 2024
* Make task log messages include run_id

* apply format change (pre-commit)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area:logging type:bug-fix Changelog: Bug Fixes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Include run_id in TaskInstance Logging for Enhanced Traceability and Debugging
4 participants