forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Modify KPO to log container log periodically (apache#37279)
The current state of the KubernetesPodOperator (KPO) only prints container logs at the end of task execution. While this is sufficient for short-running tasks, it becomes less user-friendly when the container runs for an extended period. This PR enhances the KPO by modifying the trigger and operator to fetch container logs periodically making it possible to monitor the task's progress in the Airflow task UI. a new parameter has been introduced to the operator: logging_interval: This parameter specifies the maximum time, in seconds, that the task should remain deferred before resuming to fetch the latest logs.
- Loading branch information
1 parent
ed346c7
commit 053485b
Showing
8 changed files
with
378 additions
and
280 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.