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 2022/06/01 10:57:23 UTC

[GitHub] [airflow] Bowrna commented on issue #23227: Ability to clear a specific DAG Run's task instances via REST APIs

Bowrna commented on issue #23227:
URL: https://github.com/apache/airflow/issues/23227#issuecomment-1143451542

   @bbovenzi Currently the below task_ids format is acceptable as suggested by @ephraimbuddy . 
   ```
   {
     task_ids: [
       ('task', 3),
        'other_task' ,// default to map_index = -1
     ]
   }
   ```
   https://github.com/apache/airflow/blob/325444e3813bc2439566f6f29c07ff3cfc038368/airflow/models/dag.py#L1381
   
   Do we have to explicitly get a request body like below with task_id and map_index as key name in list of dict ?
   
   ```
   {
     instances: [
       { task_id: 'task', map_index: 3 },
       { task_id: 'other_task' } // default to map_index = -1
     ]
   ```


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

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org