1fanwang opened a new pull request, #72173: URL: https://github.com/apache/airflow/pull/72173
Each stateful Iceberg snapshot watcher submits worker-thread jobs to load and save its watermark. A triggerer running many watchers spends executor capacity on storage that already has an async API. After this change, stateful watchers await watermark storage directly. Worker threads remain limited to synchronous PyIceberg catalog calls. Watchers without an injected state store keep their existing behavior. Depends on https://github.com/apache/airflow/pull/72127 and must merge after it. <details> <summary>Test output</summary> ```console $ uv run --project providers/apache/iceberg pytest providers/apache/iceberg/tests/unit/apache/iceberg/triggers/test_iceberg.py -xvs # Before FAILED providers/apache/iceberg/tests/unit/apache/iceberg/triggers/test_iceberg.py::test_resumes_from_the_stored_watermark E AssertionError: assert [...] == [] 1 failed, 10 passed # After 19 passed, 1 warning in 17.57s ``` </details> --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes: GitHub Copilot CLI 1.0.80 (GPT-5.6 Sol) Generated-by: GitHub Copilot CLI 1.0.80 (GPT-5.6 Sol) following [the guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#gen-ai-assisted-contributions) --- * Read the **[Pull Request Guidelines](https://github.com/apache/airflow/blob/main/contributing-docs/05_pull_requests.rst#pull-request-guidelines)** for more information. Note: commit author/co-author name and email in commits become permanently public when merged. * For fundamental code changes, an Airflow Improvement Proposal ([AIP](https://cwiki.apache.org/confluence/display/AIRFLOW/Airflow+Improvement+Proposals)) is needed. * When adding dependency, check compliance with the [ASF 3rd Party License Policy](https://www.apache.org/legal/resolved.html#category-x). -- 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]
