You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey, I'm trying to implement a simple retry mechanism with tenacity in Python that will retry failed connection to Hatchet cloud.
The reason I need retries is because we're running our workers in Google Cloud Run and when we deploy new versions, creates a new revision with new workers before killing the old workers. Due to that, it causes more workers to live during deployments, which can cause unexpected behaviours (for example exceeding the workers limit in Hatchet Cloud).
Hey, I'm trying to implement a simple retry mechanism with tenacity in Python that will retry failed connection to Hatchet cloud.
The reason I need retries is because we're running our workers in Google Cloud Run and when we deploy new versions, creates a new revision with new workers before killing the old workers. Due to that, it causes more workers to live during deployments, which can cause unexpected behaviours (for example exceeding the workers limit in Hatchet Cloud).
I've tried to do the following:
However, seems like worker.start() doesn't throw an exception, causing the function to hang.
Do you know what's the recommended way to achieve something like this?
The text was updated successfully, but these errors were encountered: