This message was deleted.
# ask-marvin
s
This message was deleted.
m
Your message was too long by 35 tokens - please shorten it and try again. For reference, here's your message at the allowed limit:
I 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
To increase the configured timeout for your flow run, you need to set the
timeout_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:
Copy code
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:
Copy code
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.
d
@Marvin How do I find out what my current configured timeout is?