Slackbot
07/12/2024, 2:56 PMMarvin
07/12/2024, 2:56 PMI got this error:```Reported flow run '619e3c26-db3d-4460-bfd3-9d406f65c3d6' as crashed: Flow run infrastructure exited with non-zero status code 1. 030359 PM prefect.flow_runs.worker Job Run logs can be found on GCP at: https://console.cloud.google.com/logs/viewer?project=amygdadss&advancedFilter=resource.type%3D%22cloud_run_job%22%0Aresource.labels.job_name%3D%22pi5-sirrah-expanse-0f3fbf86b9464de58991a363bc69017b%22%0Aresource.labels.location%3D%22europe-west2%22%0Alabels.%22run.googleapis.com/execution_name%22%3D%22pi5-sirrah-expanse-0f3fbf86b9464de58991a363bc69017b-8kh4d%22 030359 PM prefect.flow_runs.worker Job Run pi5-sirrah-expanse-0f3fbf86b9464de58991a363bc69017b did not complete successfully. Task pi5-sirrah-expanse-0f3fbf86b9464de58991a363bc69017b-8kh4d-task0
Marvin
07/12/2024, 2:57 PMtimeout_seconds
parameter in your flow definition. This parameter specifies the duration in seconds before a flow run times out.
Here is an example of how to configure it:
python
from prefect import flow
import time
@flow(timeout_seconds=3600) # setting timeout to 1 hour
def my_flow():
# flow code here
pass
If the timeout refers to a task, you can set it directly in the task definition:
python
from prefect import task, flow
@task(timeout_seconds=600) # setting timeout to 10 minutes
def my_task():
# task code here
pass
@flow
def my_flow():
my_task()
For more information on configuring timeouts, refer to the Prefect Tasks documentation here and the Prefect Flows documentation here.
If the issue persists and seems more complex, it might be related to a specific deployment or worker configuration. For further troubleshooting, you may want to refer to related GitHub issues like this one which discusses detailed cases of similar problems.
Feel free to adjust these configurations according to your specific use case.Daniel
07/12/2024, 2:58 PM