You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "hussein-awala (via GitHub)" <gi...@apache.org> on 2023/03/03 23:22:38 UTC

[GitHub] [airflow] hussein-awala commented on issue #29903: Task-level retries overrides from the DAG-level default args are not respected when using `partial`

hussein-awala commented on issue #29903:
URL: https://github.com/apache/airflow/issues/29903#issuecomment-1454256057

   I can reproduce on master:
   ```python
   import pendulum
   from airflow.decorators import dag
   from airflow.operators.bash import BashOperator
   
   
   @dag(
       dag_id="test_default_args_with_partial",
       start_date=pendulum.datetime(2023, 1, 1),
       catchup=False,
       default_args={"retries": 0},
   )
   def dag():
       op = BashOperator.partial(task_id="my_task", retries=3).expand(bash_command=["exit 1", "ps"])
   
   
   dag()
   ```
   The retries of the mapped tasks is 0.


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