Hi, I'm experiencing timeout error even though I p...
# prefect-cloud
p
Hi, I'm experiencing timeout error even though I put timeout_seconds = 3600. How can I disable this error:
Copy code
File "/usr/local/lib/python3.10/site-packages/anyio/_core/_tasks.py", line 118, in __exit__
    raise TimeoutError
TimeoutError

During handling of the above exception, another exception occurred: 
File "/usr/local/lib/python3.10/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions
    raise to_exc(exc)
httpcore.ReadTimeout
I run prefect to orchestrate airbyte connection (airbyte local)
1
j
Is the issue that setting the timeout_seconds doesn’t seem to actually increase the timeout? Or is the issue that it waits an hour and still times out?
p
the issue is the setting timeout_second doesn't seem to increase the timeout Even the log said Error timeout and then stop the whole deployment, the airbyte connection still be triggerred and get run.
👍 1
the same code worked fine for several time yesterday. So I don't know why it is not stable
Copy code
@flow(name="realtime_app_revenue_admobs_tool_apps",
      timeout_seconds=3600
)
async def base_flow_realtime_admobs_2():
    airbyte_server = AirbyteServer()
    await trigger_sync(
        airbyte_server=airbyte_server,
        connection_id=realtime_app_revenue_admobs_tool_apps,
        poll_interval_s=60,
        status_updates=True
    )
a
Trigger sync might have a separate timeout kwarg.
1
p
@Andrew Huang is there a way to adjust this trigger sync timeout param?
Oh! I found the param, let's me try
It seems to work with new trigger sync timeout param. Thanks all!
🙌 2