mrpowerus commented on issue #14974: URL: https://github.com/apache/airflow/issues/14974#issuecomment-806639297
Running a dummy task seems to solve the problem (in line with the findings before): ``` ####### # Running this DAG each 20 min, tries to solve the problems in the KubernetsJobWatcher as described here # https://github.com/apache/airflow/issues/14974 ####### from airflow import DAG from airflow import configuration as conf from datetime import datetime, timedelta from airflow.operators.bash import BashOperator default_args = { 'owner': 'airflow', 'depends_on_past': False, 'email_on_failure': False, 'email_on_retry': False, 'retries': 1, 'retry_delay': timedelta(minutes=1), 'schedule_interval': timedelta(minutes=5), 'catchup':False } # Using a DAG context manager, you don't have to specify the dag property of each task dag = DAG('bug-fix', start_date=datetime(2019, 1, 1), max_active_runs=1, default_args=default_args ) operator = BashOperator( task_id='echo', bash_command='echo running', dag=dag) ``` -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
