Dominik Wagner
02/13/2025, 10:24 AMFlow run could not be submitted to infrastructure: <HttpError 409 when requesting <https://run.googleapis.com/v2/projects/><project>/locations/<location>/jobs?jobId=prefect-prod-cloud-run-pool&alt=json returned "Resource 'prefect-prod-cloud-run-pool' already exists.". Details: "Resource 'prefect-prod-cloud-run-pool' already exists.">
Concurrency Limit is set to Unlimited on the work pool - am i missing something?Marvin
02/13/2025, 10:24 AMHttpError 409
. This error indicates that the resource already exists, which is not resolved by simply having an unlimited concurrency setting.
Here are a few steps to consider:
1. Resource Naming: Ensure that each flow run gets a unique job identifier. Prefect may be trying to create a job with an existing name, causing the conflict. You might need to customize the job template or identifier to ensure uniqueness.
2. Concurrency Settings: While you mentioned that the concurrency limit is set to unlimited, it might be worth reviewing how Prefect handles job creation and whether there are any implicit limits or settings affecting job names or identifiers.
3. Check for Known Issues: There might be known issues or updates related to this. You can track such issues on Prefect's GitHub repository. Unfortunately, the search didn't return a direct match, but keeping an eye on known issues might help.
4. Documentation: Review the work pool documentation and GCP worker guide for any additional configuration details that might be relevant.
If these steps don't resolve the issue, consider reaching out to Prefect support or community forums for further assistance.Dominik Wagner
02/13/2025, 11:59 AMMarvin
02/13/2025, 11:59 AMinfra_overrides
attribute in your prefect.yaml
file, which allows you to override default values in the work pool's base job template.
Here's a general approach:
1. Customize the Job Template: Use the infra_overrides
attribute to specify a unique identifier for each job. This could involve using environment variables, flow parameters, or other unique identifiers available at runtime.
2. Use Dynamic Values: Incorporate dynamic values such as timestamps, UUIDs, or flow run IDs into the job identifier to ensure uniqueness.
For more detailed instructions, you can refer to the Prefect YAML documentation which explains how to use deployment mechanics and overrides.
If you need specific examples or further customization, you might want to explore Prefect's GitHub repository or community forums for shared solutions.Johan sh
02/13/2025, 1:15 PMDominik Wagner
02/13/2025, 1:42 PMCourt
02/21/2025, 10:16 PMDominik Wagner
02/24/2025, 8:37 AMCourt
02/26/2025, 4:20 PMCourt
02/27/2025, 5:38 PM