ephraimbuddy commented on a change in pull request #17819:
URL: https://github.com/apache/airflow/pull/17819#discussion_r696076214
##########
File path: tests/jobs/test_scheduler_job.py
##########
@@ -207,17 +207,18 @@ def test_process_executor_events(self, mock_stats_incr,
mock_task_callback, dag_
session.commit()
executor.event_buffer[ti1.key] = State.FAILED, None
-
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(
full_filepath='/test_path1/',
simple_task_instance=mock.ANY,
msg='Executor reports task instance '
'<TaskInstance: test_process_executor_events.dummy_task 2016-01-01
00:00:00+00:00 [queued]> '
'finished (failed) although the task says its queued. (Info: None)
'
'Was the task killed externally?',
+ task=task1,
Review comment:
I'm not sure why this is failing...will appreciate a help here
##########
File path: tests/jobs/test_scheduler_job.py
##########
@@ -207,17 +207,18 @@ def test_process_executor_events(self, mock_stats_incr,
mock_task_callback, dag_
session.commit()
executor.event_buffer[ti1.key] = State.FAILED, None
-
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(
full_filepath='/test_path1/',
simple_task_instance=mock.ANY,
msg='Executor reports task instance '
'<TaskInstance: test_process_executor_events.dummy_task 2016-01-01
00:00:00+00:00 [queued]> '
'finished (failed) although the task says its queued. (Info: None)
'
'Was the task killed externally?',
+ task=task1,
Review comment:
I'm not sure why this is failing...will appreciate help here
--
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]