senapati484 commented on issue #74207:
URL: https://github.com/apache/airflow/issues/74207#issuecomment-7256924963

   The remaining warning appears to be caused by a normal retry transition: the 
executor event belongs to the failed attempt, while the scheduler has already 
advanced the task instance to its next try. That is different from an event for 
a genuinely unknown task instance or a concurrent-scheduler race.
   
   A possible fix is to make the discard path distinguish stale retry events 
from unexpected missing-task events:
   
   1. Use the executor event’s task-instance identity and attempt/try 
information to determine whether it refers to a previous attempt of an existing 
task instance.
   2. Suppress or downgrade the warning for that expected stale retry event, 
while retaining the warning for an event that cannot be matched to the 
DAG/run/task at all.
   3. Keep the event-processing state transition unchanged; this should be a 
logging/diagnostic fix, not a second attempt to mutate the task state.
   4. Add a scheduler unit/integration test covering fail-once-then-retry with 
LocalExecutor, plus a control case for a truly unknown task instance and a 
multi-scheduler/locking case.
   
   That would remove the noisy one-warning-per-retry behavior without hiding 
real executor-event loss.


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