SameerMesiah97 opened a new pull request, #77737:
URL: https://github.com/apache/airflow/pull/77737

   **Description**
   
   Migrate Airbyte's deferrable execution timeout handling to the new 
`BaseTrigger.on_timeout()` lifecycle hook.
   
   Implement `AirbyteSyncTrigger.on_timeout()` to cancel the associated Airbyte 
job when a deferred task exceeds its `execution_timeout`. Remove the existing 
`execution_deadline` workaround, the additional timeout buffer, and timeout 
cancellation handling from `execute_complete()`.
   
   **Rationale**
   
   Previously, Airbyte relied on a provider-specific execution deadline and 
timeout event handling to cancel running jobs when deferred tasks exceeded 
their execution timeout.
   
   With timeout cleanup now supported by the core trigger lifecycle, Airbyte 
can delegate this responsibility to `BaseTrigger.on_timeout()`, simplifying the 
operator and trigger implementations.
   
   The synchronous cancellation request is executed in a separate thread to 
avoid blocking the triggerer event loop. Cancellation failures are logged 
without propagating additional exceptions during cleanup.
   
   **Notes**
   
   This PR depends on 
[[#77562](https://github.com/apache/airflow/pull/77562)](https://github.com/apache/airflow/pull/77562),
 which introduces the `BaseTrigger.on_timeout()` lifecycle hook in Airflow core.
   
   **Tests**
   
   Updated the existing unit tests to remove the provider-specific execution 
deadline handling and verify the revised deferral timeout behaviour.
   
   Added tests to verify that `AirbyteSyncTrigger.on_timeout()` cancels the 
associated Airbyte job and handles cancellation failures without raising 
additional exceptions.
   
   ###### Was generative AI tooling used to co-author this PR?
   
   - [X] Yes (please specify the tool below)
   
   Generated-by: [GPT 6.1] following [the 
guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions)


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

  • [PR] Migrate Airbyte deferrab... SameerMesiah97 (via GitHub) via commits

Reply via email to