Klashe
Alan
Xavier Babu
Manoj
<frozen runpy>:128: RuntimeWarning: 'prefect.engine' found in sys.modules after import of package 'prefect', but prior to execution of 'prefect.engine'; this may result in unpredictable behaviour
Anat Tal Gagnon
Samuel Hinton
PREFECT__SERVER__UI__PORT
PREFECT__SERVER__UI__HOST_PORT
UI running at localhost:8080
Bernd Grolig
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()`.
Megan
ValueError: Unable to create hash - objects could not be serialized. JSON error: Unable to serialize unknown type: <class 'pandas.core.frame.DataFrame'> Pickle error: cannot pickle 'weakref.ReferenceType' object This often occurs when task inputs contain objects that cannot be cached like locks, file handles, or other system resources. To resolve this, you can: 1. Exclude these arguments by defining a custom `cache_key_fn` 2. Disable caching by passing `cache_policy=NONE`
Sung Kim
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.