Subham-KRLX opened a new pull request, #62241:
URL: https://github.com/apache/airflow/pull/62241
Fixes
MSGraphSensor
ignoring the
timeout
parameter. The sensor's
execute_complete
method previously re-deferred indefinitely using TimeDeltaTrigger without
checking the elapsed time, bypassing Airflow's built-in sensor timeout
enforcement.
Changes
Added timeout validation in MSGraphSensor.execute_complete using
context["ti"].start_date.
Raises AirflowSensorTimeout if the timeout limit has been exceeded.
Added unit test
test_execute_complete_raises_timeout
to verify the fix.
closes: #62157
[Pull Request
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)
followed.
Code changes are covered with tests.Fixes
MSGraphSensor
ignoring the
timeout
parameter. The sensor's
execute_complete
method previously re-deferred indefinitely using TimeDeltaTrigger without
checking the elapsed time, bypassing Airflow's built-in sensor timeout
enforcement.
Changes
Added timeout validation in MSGraphSensor.execute_complete using
context["ti"].start_date.
Raises AirflowSensorTimeout if the timeout limit has been exceeded.
Added unit test
test_execute_complete_raises_timeout
to verify the fix.
closes: #62157
[Pull Request
Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)
followed.
Code changes are covered with tests.
--
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]