You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description
The Clear API will use clear_task_instances method to reset the ti.max_reties of task_instance, so if the DAG set the number of task retries not equal to zero, the task_instance will retry if it fails, But we want it failed without retry.
Use case / motivation
In my application, we use the Clear API as a way to rerun the task_instance, but we want the rerun to be a one-time action. Therefore, we would like to add a feature to the Clear API to control whether the task instance can be retried or not.
Are you willing to submit a PR?
Yes, I'm willing to.
This discussion was converted from issue #16458 on December 19, 2021 09:52.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Description
The Clear API will use clear_task_instances method to reset the ti.max_reties of task_instance, so if the DAG set the number of task retries not equal to zero, the task_instance will retry if it fails, But we want it failed without retry.
Use case / motivation
In my application, we use the Clear API as a way to rerun the task_instance, but we want the rerun to be a one-time action. Therefore, we would like to add a feature to the Clear API to control whether the task instance can be retried or not.
Are you willing to submit a PR?
Yes, I'm willing to.
Related Issues
Beta Was this translation helpful? Give feedback.
All reactions