You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/04/05 07:10:24 UTC

[GitHub] [airflow] iremonur edited a comment on issue #15192: SCHEDULED TASKS ARE STUCK IN THE STATE OF "RUNNING"

iremonur edited a comment on issue #15192:
URL: https://github.com/apache/airflow/issues/15192#issuecomment-813236049


   Actually, I tried to schedule another task to be 10 minutes between each other, I want the first task to start at 19:50.
   In the dag code (located in ~/airflow/dags/tutorial_v2.py), I set:
   -> start_date=datetime.datetime(2021, 4, 4, 19, 50)
   -> schedule_interval= '*/10 * * * *'
   The first task is succeeded but the other three of them are stuck in the state of "running".
   Some of the parameters I set in the dag code :
   default_args = {
   'owner': 'airflow',
   'depends_on_past': False,
   'wait_for_downstream' : False,
   'email': ['airflow@example.com'],
   'email_on_failure': False,
   'email_on_retry': False,
   'retries': 1,
   'retry_delay': timedelta(minutes=5),
   }
   
   I run these commands to schedule the dag:
   $ python ~/airflow/dags/tutorial_v2.py
   $ airflow db init
   $ airflow dags backfill dag_v6 -s 2021-04-04-19:50 -e 2021-04-06
   The tasks which have the execution time at future are succeeded but some of the tasks at the beginning are stuck in the state of "running" :+1: 
   ![Screenshot from 2021-04-05 10-07-44](https://user-images.githubusercontent.com/47700082/113547538-c97f7900-95f6-11eb-9cf7-34eba7ce6df4.png)
   
   I don't understand why the scheduler skip some of the tasks, I would be very glad if you help me with this.
   


-- 
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:
users@infra.apache.org