Iryna
Bob Colner
state_handlers
Denzil Saldanha
Luke Orland
prefect deploy
./prefect.yaml
Would you like to build a custom Docker image for this deployment? [y/n] (n):
Would you like to save configuration for this deployment for faster deployments in the future? [y/n]:
Robert Banick
import asyncio from prefect.states import State from prefect.client import get_client MAX_RUNS_TO_DELETE = 5000 PREFECT_OFFSET_MAX = 200 async def remove_all_flows(): client = get_client() for i in range(0, MAX_RUNS_TO_DELETE, PREFECT_OFFSET_MAX): flow_runs = await client.read_flow_runs(offset=i) for flow_run in flow_runs: if flow_run.state_name == "Late": flow_id = flow_run.id print("deleting", flow_id) await client.set_flow_run_state(flow_run_id=flow_id, state=State(type="CANCELLED")) asyncio.run(remove_all_flows())
pydantic.errors.PydanticUserError: `StateCreate` is not fully defined; you should define all referenced types, then call `StateCreate.model_rebuild()`.
Jason
RuntimeError: Timed out while attempting to connect to ephemeral Prefect API server.
Ryan R
Hedgar
John Ramirez
David Anderson
Bring your towel and join one of the fastest growing data communities. Welcome to our second-generation open source orchestration platform, a completely rethought approach to dataflow automation.