ephraimbuddy commented on a change in pull request #17819:
URL: https://github.com/apache/airflow/pull/17819#discussion_r710262945



##########
File path: tests/jobs/test_scheduler_job.py
##########
@@ -207,7 +207,7 @@ def test_process_executor_events(self, mock_stats_incr, 
mock_task_callback, dag_
 
         self.scheduler_job._process_executor_events(session=session)
         ti1.refresh_from_db()
-        assert ti1.state == State.FAILED
+        assert ti1.state == State.QUEUED
         mock_task_callback.assert_called_once_with(

Review comment:
       The issue I face now is that to be able to check if there are still 
retries, we need the task object. `ti.is_eligible_to_retry` requires that 
`ti.task` exists




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