uranusjr commented on PR #75726:
URL: https://github.com/apache/airflow/pull/75726#issuecomment-7208516251
What is the use case for this in practice? Retry Policies (AIP-105, #65474)
already let a task decide at failure time not to retry. `RetryDecision.fail()`
would stop retries; something like this:
```python
class FailLateFailures(RetryPolicy):
def evaluate(self, exception, try_number, max_tries, context=None):
return RetryDecision.fail(reason="Not retrying")
MyOperator(task_id="long_task", retries=3, retry_policy=FailLateFailures())
```
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]