Sque
03/02/2025, 9:52 AMUnable to check status of flow run: <HttpError 404 when requesting <https://run.googleapis.com/v2/projects/><retratced>/locations/europe-west3/jobs/prefect-daily-prices-2025-03-02/executions/prefect-quick-shrimp-42mdg?alt=json returned "Resource 'prefect-quick-shrimp-42mdg' of kind 'EXECUTION' in region 'europe-west3' in project 'lang-learn-ai' with parent 'prefect-daily-prices-2025-03-02' does not exist.". Details: "Resource 'prefect-quick-shrimp-42mdg' of kind 'EXECUTION' in region 'europe-west3' in project 'lang-learn-ai' with parent 'prefect-daily-prices-2025-03-02' does not exist.">
Prefect however correctly spawns the job (at least most of the time), so it has trouble tracking its status only. The Http 404 error is because this is NOT the name of the job IT creates. In this case it is looking for:
• job name: prefect-daily-prices-2025-03-02
• job execution: prefect-quick-shrimp-42mdg
However on the server it has created the jobs with different name:
• job name: prefect-quick-shrimp
• job execution: prefect-quick-shrimp-42mdg
I am not sure which parts is producing this bug, I am on Prefect Cloud and with prefect client code 3.2.9
My workflow is like this:
@flow(
name="scrape-product-prices",
flow_run_name=lambda: f"daily-prices-{current_date_str()}"
)
def scrape_product_prices_flow(test_with_dummy: bool = False):
pass
Should I open a bug? This is a CONSISTENT behaviour to 100% of my flows and runs on this worker.Alexander Azzam
03/02/2025, 8:14 PM