forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 18
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fetch intermediate log async GKEStartPod (apache#39348)
* Fetch intermediate log in async GKEStartPod This PR introduces a parameter that enables the retrieval of intermediate logs for the GKEStartPod asynchronous operator. Add param last_log_time and logging_interval in GKEStartPodTrigger serialize Add optional param last_log_time in method invoke_defer_method Example DAG: start_pod = GKEStartPodOperator( task_id="start_pod", project_id=PROJECT_ID, location=LOCATION, cluster_name=GKE_CLUSTER_NAME, do_xcom_push=True, namespace=GKE_NAMESPACE, image="ubuntu:jammy", cmds=["sh", "-c", "timeout 300 bash -c 'while true; do echo \"meow\"; sleep 30; done'"], name="test-sleep", in_cluster=False, on_finish_action="delete_pod", deferrable=True, get_logs=True, logging_interval=5, gcp_conn_id=GCP_CONN_ID )
- Loading branch information
1 parent
1b13cf5
commit a2c09d2
Showing
4 changed files
with
67 additions
and
6 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
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