joshuaghezzi opened a new issue, #29648:
URL: https://github.com/apache/airflow/issues/29648

   ### Description
   
   Ability to optionally exclude the time that the task was deferred from the 
overall execution time of the task.
   
   ### Use case/motivation
   
   I've created a custom operator which defers execution for a specified amount 
of time when a specific exception occurs. The task that uses the operator has a 
timeout on it which is less than the duration of the deferral so once the 
deferral resumes the task will timeout. Instead of raising the timeout to 
account for the time the task could be deferred which changes the intent of the 
timeout, I feel it'd useful to optionally exclude the time the task was 
deferred. The execution time would essentially be paused while the task is 
deferred and would start from where it was paused once the task resumes.
   
   ### Related issues
   
   #19382 - brought expected behaviour in line with documentation.
   
   ### Are you willing to submit a PR?
   
   - [X] Yes I am willing to submit a PR!
   
   ### Code of Conduct
   
   - [X] I agree to follow this project's [Code of 
Conduct](https://github.com/apache/airflow/blob/main/CODE_OF_CONDUCT.md)
   


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

Reply via email to