Repository navigation
Improve the log file template for ExecuteCallback - #62616
Conversation
|
Thanks for doing this. You are way out of date on your working branch, that file no longer exists. But the same change would be in As far as the change itself, I think it should be alright. Just to think this through, there is currently a PR up that will be adding TestConnection workloads to the executor, and likely in the near future we'll be migrating on_success_callback, on_failure_callback, etc over to the ExecutorCallback framework. I think this still makes sense for the on_foo_callback; those are either be assigned to a Dag or a task, so either way it'll have this info, so those should be fine. And the TestConnection doesn't go through the callback flow so that should be fine too. Update your branch and make the change in the right/new location and ping me for a re-review, I'll approve it. |
… and run_id in the path
665cafa to
1052dea
Compare
Thanks for your information! |
There was a problem hiding this comment.
Pull request overview
This PR improves how executor callback logs are organized by switching from a flat log filename (keyed only by callback ID) to a hierarchical path that includes the DAG and DagRun identifiers, making it easier to locate logs without additional DB lookups.
Changes:
- Update
ExecuteCallback.make()to setlog_pathasexecutor_callbacks/{dag_id}/{run_id}/{callback_id}.
You can also share your feedback on Copilot code review. Take the survey.
|
cc @ferruzzi |
… and run_id in the path (apache#62616)
… and run_id in the path (apache#62616)
Why
Currently, all executor callback logs are stored in a single flat directory
executor_callbacks/, named only by their callback ID. This makes it difficult to associate logs with specific DAGs or runs without querying the database.closes: #60464
Was generative AI tooling used to co-author this PR?
{pr_number}.significant.rstor{issue_number}.significant.rst, in airflow-core/newsfragments.