I am running a deployment and it keeps crashing. Below is my python code and logs. Any help would be greatly appreciated
SOURCE_REPO=“GitHub - bonsuot/fantasy-premier-league: FPL Oracle”
if name == “main”:
flow.from_source(
source=SOURCE_REPO,
entrypoint=“fpl_etl.py:main_flow”,
).deploy(
name=“fpl-deployment”,
work_pool_name=“my-fpl-pool”,
cron=“0 1 * * *”, # Cron schedule (1am every day)
)
{
“id”: “81e1dbbe-83e3-401f-bdfd-c9fc10b492d8”,
“account”: “f8c80a3b-ba94-438e-8177-0b4c72c9faaa”,
“event”: “prefect.flow-run.Crashed”,
“occurred”: “2024-10-29T03:57:38.706Z”,
“payload”: {
“intended”: {
“from”: “PENDING”,
“to”: “CRASHED”
},
“initial_state”: {
“type”: “PENDING”,
“name”: “Pending”
},
“validated_state”: {
“type”: “CRASHED”,
“name”: “Crashed”,
“message”: “Flow run process exited with non-zero status code 1.”
}
},
“received”: “2024-10-29T03:57:39.015Z”,
“related”: [
{
“prefect.resource.id”: “prefect.flow.9fba6669-5d39-467c-ab92-9b804a2161dc”,
“prefect.resource.role”: “flow”,
“prefect.resource.name”: “fpl_etl_pipeline”
},
{
“prefect.resource.id”: “prefect.deployment.e9dec70d-7129-40d8-996d-361055c97822”,
“prefect.resource.role”: “deployment”,
“prefect.resource.name”: “fpl-deployment”
},
{
“prefect.resource.id”: “prefect.work-queue.a82155e8-8ccf-4c2e-8ad6-5fc0e78a03fe”,
“prefect.resource.role”: “work-queue”,
“prefect.resource.name”: “default”
},
{
“prefect.resource.id”: “prefect.work-pool.40a23110-05fe-41a1-be1b-e3b4d3bd05a6”,
“prefect.resource.role”: “work-pool”,
“prefect.resource.name”: “my-fpl-pool”
},
{
“prefect.resource.id”: “prefect-cloud.user.a29ed6f5-3b77-42c1-b585-99180412f359”,
“prefect.resource.role”: “creator”,
“prefect.resource.name”: “pi822-norellus”
}
],
“resource”: {
“prefect.resource.id”: “prefect.flow-run.3f980cdb-bf7d-4d3d-b301-0a117f549094”,
“prefect.resource.name”: “papaya-ammonite”,
“prefect.state-message”: “Flow run process exited with non-zero status code 1.”,
“prefect.state-name”: “Crashed”,
“prefect.state-timestamp”: “2024-10-29T03:57:38.706777+00:00”,
“prefect.state-type”: “CRASHED”
},
“workspace”: “bae1a03a-8fb4-4a73-8735-67609705d5fd”
}