Skip to content

Commit a192cec

Browse files
authored
updates pipeline_timeout CloudDataFusionStartPipelineOperator (#18773)
1 parent 20dc5b9 commit a192cec

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

airflow/providers/google/cloud/operators/datafusion.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -802,7 +802,7 @@ def __init__(
802802
runtime_args: Optional[Dict[str, Any]] = None,
803803
success_states: Optional[List[str]] = None,
804804
namespace: str = "default",
805-
pipeline_timeout: int = 10 * 60,
805+
pipeline_timeout: int = 5 * 60,
806806
project_id: Optional[str] = None,
807807
api_version: str = "v1beta1",
808808
gcp_conn_id: str = "google_cloud_default",
@@ -823,13 +823,12 @@ def __init__(
823823
self.delegate_to = delegate_to
824824
self.impersonation_chain = impersonation_chain
825825
self.asynchronous = asynchronous
826+
self.pipeline_timeout = pipeline_timeout
826827

827828
if success_states:
828829
self.success_states = success_states
829-
self.pipeline_timeout = pipeline_timeout
830830
else:
831831
self.success_states = SUCCESS_STATES + [PipelineStates.RUNNING]
832-
self.pipeline_timeout = 5 * 60
833832

834833
def execute(self, context: dict) -> str:
835834
hook = DataFusionHook(

0 commit comments

Comments
 (0)