sunank200 commented on code in PR #40084:
URL: https://github.com/apache/airflow/pull/40084#discussion_r1689239763


##########
tests/sensors/test_time_sensor.py:
##########
@@ -63,7 +63,6 @@ def test_task_is_deferred(self):
 
         assert isinstance(exc_info.value.trigger, DateTimeTrigger)
         assert exc_info.value.trigger.moment == timezone.datetime(2020, 7, 7, 
10)
-        assert exc_info.value.method_name == "execute_complete"

Review Comment:
   The current implementation has `method_name` set as `execute_complete` for 
exiting a task from the worker option. Otherwise, if exiting a task from the 
trigger, the `method_name` doesn't matter. Adding an additional test to check 
for the `method_name` when `end_from_trigger=True` would require changing the 
`method_name` in the sensor as well. I felt that's not good idea. WDYT?



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