Vamsi-klu opened a new pull request, #68151: URL: https://github.com/apache/airflow/pull/68151
Cloud SQL serializes administrative operations per instance, so two parallel `CloudSQLImportInstanceOperator` / `CloudSQLExportInstanceOperator` tasks against the same instance race and the second fails with HTTP 409 `operationInProgress` (#68040). This adds an operation-agnostic, deferrable `CloudSQLNoOperationInProgressSensor` that polls `sqladmin.operations.list` for the instance and succeeds once no operation is in a non-terminal (PENDING/RUNNING) state. Place it upstream of the import/export operators to serialize work. Fails fast on HTTP 403/404. Operator submit semantics are unchanged. Adds: a `list_operations` hook method, a `CloudSQLNoOperationInProgressTrigger`, the new sensor, provider.yaml registration, a howto doc section, and unit tests for the hook/trigger/sensor. closes: #68040 --- ##### Was generative AI tooling used to co-author this PR? - [X] Yes — Claude Code (Opus 4.8) Generated-by: Claude Code (Opus 4.8) 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]
