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/06/15 14:12:09 UTC

[GitHub] [airflow] dimonchik-suvorov opened a new issue #16460: Typos in Backfill's `task-regex` param

dimonchik-suvorov opened a new issue #16460:
URL: https://github.com/apache/airflow/issues/16460


   Example:
   DAG structure:
   ```
   default_args = {
       'owner': 'dimon',
       'depends_on_past': False,
       'start_date': datetime(2021, 1, 10)
   }
   
   dag = DAG(
       'dummy-dag',
       schedule_interval='21 2 * * *',
       catchup=False,
       default_args=default_args
   )
   
   DagContext.push_context_managed_dag(dag)
   task1 = BashOperator(task_id='task1', bash_command='echo 1')
   task2 = BashOperator(task_id='task2', bash_command='echo 2')
   task2 << task1
   task3 = BashOperator(task_id='task3', bash_command='echo 3')
   ```
   
   Let’s say you’ve missed the button and typed `--task-regex task4`.
   When the backfill starts, firstly it will create a new empty DagRun and puts it in DB. Then the backfill job will go and try to find tasks that match the regex you’ve entered, will not find any obviously and will be stuck in the “running” state together with newly created DagRun forever.
   


-- 
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