releaseLinkdev.to ↗
Deploying new Temporal workflow code while workflows are running
100 Temporal workflows, one step added mid-flow: a plain restart broke 42, a rolling overlap broke 83, and only workflow.patched() got all 100 through.

Why we picked it · the editor's summary
Adding one activity after step 4 of an eight-step Temporal workflow and restarting the workers broke all 42 of the 100 running workflows that had already passed step 4, each with a nondeterminism error on replay. Running old and new workers side by side for 60 seconds was worse: the new worker ran nothing, and 83 broke once the old one stopped. Rolling back or patching after the bad deploy each left 50 stuck, a reset freed them by running steps a second time, and only guarding the change with workflow.patched() from the first deploy completed all 100. Each scenario ran once, on a local dev server with the Python SDK. The broken workflows stayed Running instead of failing, so alert on workflow task failures or nondeterminism warnings, not on failed workflows.
Read on DEV Community ↗11m read
Comments
Loading comments…