Browse Source

fix: startup_timeout_seconds=120

Zhang Li 2 years ago
parent
commit
786778cd3f
1 changed files with 1 additions and 0 deletions
  1. 1 0
      app/core/airflow/templates/dag_template.py.jinja2

+ 1 - 0
app/core/airflow/templates/dag_template.py.jinja2

@@ -59,6 +59,7 @@ with DAG(start_date=datetime(2022,6,1),catchup=False,schedule_interval=None if '
                                                                     random_name_suffix=True,
                                                                     random_name_suffix=True,
                                                                     labels={'app':'backend', 'env':'dev', 'run_ts':{{ "'{{ ts_nodash }}'" }} },
                                                                     labels={'app':'backend', 'env':'dev', 'run_ts':{{ "'{{ ts_nodash }}'" }} },
                                                                     reattach_on_restart=True,
                                                                     reattach_on_restart=True,
+                                                                    startup_timeout_seconds=600,
                                                                     is_delete_operator_pod=False,
                                                                     is_delete_operator_pod=False,
                                                                     get_logs=True,
                                                                     get_logs=True,
                                                                     {% if image_pull_key != None or image_pull_key != ""%}image_pull_secrets='{{ image_pull_key }}',{% endif %}
                                                                     {% if image_pull_key != None or image_pull_key != ""%}image_pull_secrets='{{ image_pull_key }}',{% endif %}