Niall O'Riordan
02/03/2025, 4:32 PMrun_deployment
function but I receive an error specifying that the deployment doesn't exist as its looking in the wrong workspace
from prefect.deployments import run_deployment
run_deployment(name="a1234", timeout=0, as_subflow=False)
This raises the following error:
prefect.exceptions.PrefectHTTPStatusError: Client error '404 Not Found' for url '<https://api.prefect.cloud/api/accounts/><my-account>/workspaces/<current-workspace-not-the-target-workspace>/deployments/a1234'
Response: {'detail': 'Deployment not found'}
For more information check: <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status/404>
Niall O'Riordan
02/03/2025, 4:59 PM