Deploying worker consumer is cutting off the existing long running connection from older version.
Hi, we’re frequently shipping new updates to our workers and we’ve realized that deploying a new worker will cut the long running job for the same worker off.
How can we persist the long running job while deploying new versions?
2 Replies
No, worker is not limited to 30s, 30s is CPU time limit and it does handle long-running jobs pretty well. The problem is disconnection happening whenever new version is deployed.
Ah that’s a bummer because consumer is unbounded by duration spec (https://developers.cloudflare.com/queues/platform/limits/)
wish it had longer than 30 seconds to keep alive.
Cloudflare Docs
Limits
1 1 KB is measured as 1000 bytes. Messages can include up to ~100 bytes of internal metadata that counts towards total message limits.