sundeep8967 opened a new pull request, #72287: URL: https://github.com/apache/airflow/pull/72287
<!-- Thank you for contributing! Please make sure that your PR targets the `main` branch. --> Closes: #70074 ### Description With the event-driven asset enhancements in `BaseEventTrigger`, `asset_state_store` is available to read and persist state for an asset. This PR: 1. Updates `_run_response_check` in `HttpEventTrigger` (`providers/http/src/airflow/providers/http/triggers/http.py`) to inspect the `response_check` callable signature and pass `self.asset_state_store` if the callable accepts it (or has variable arguments). 2. Retains backwards compatibility for callables taking only 1 argument `(response)`. 3. Adds unit test coverage for both single-argument and multi-argument (with `asset_state_store`) response check callables in `providers/http/tests/unit/http/triggers/test_http.py`. Signed-off-by: Sundeep <[email protected]> -- 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]
