Unable to adjust watch polling frequency for Google Cloud Run V2 Worker
Author: kujengaCreated Oct 29, 2024Updated Sep 27, 2026
Labelsenhancement
Describe the current behavior
Presently there is a 5 second polling interval for checking on the status of Google Cloud Run jobs: https://github.com/PrefectHQ/prefect/blob/2c9b857779ab245f59e311b80c0c10c8a0d2e7e5/src/integrations/prefect-gcp/prefect_gcp/workers/cloud_run_v2.py#L724
Where this function is called, that value is not overridden and thus not able to be customized:
Describe the proposed behavior
I would propose that this duration by made customizable through a configurable setting.
Example Use
For a large volume of longer running flows, a short polling frequency does not add much value and incurs large request volumes against GCP infrastructure, which can cause quota thresholds to be hit.
Additional context
No response
Source: PrefectHQ/prefect