522 Error when using cloudflare workers

We are using cloudflare workers to call OpenAI and sometime the calls can take minutes to complete. Is there any way to send a heartbeat or any other signal to the worker that the out bound request is still alive and should not be timed out?
Was this page helpful?