dstandish opened a new pull request, #39336:
URL: https://github.com/apache/airflow/pull/39336

   Previously, there was a lot of bad stuff happening around try_number.  We 
incremented it when task started running.  And because of that, we had this 
logic to return "_try_number + 1" when task *not* running.  And, since it was 
naively incremented when task starts running -- i.e. without regard to why it 
is running -- we *decremented* it when deferring or exiting on a reschedule.
   
   What I do here is try to remove *all* of that stuff:
   * no more private _try_number attr
   * no more getter logic
   * no more decrementing
   * no more incrementing as part of task execution
   
   Now what we do is increment only when the task is set to *scheduled* and 
only when it's not coming out of deferral or "up_for_reschedule".
   


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