maestro icon indicating copy to clipboard operation
maestro copied to clipboard

Leverage generation_id to prevent reverting step data

Open jun-he opened this issue 5 months ago • 0 comments

In certain cases, the step instance might be reverted. For example, one worker is stuck to write a step update. Then another worker owns the workflow and update the step again. The other worker's queued query went through and then write old data to step, which effectively reverts the step data.

With generation_id, every write must ensure the generation id from the flow must no less than the generation_id in the step data. We then can prevent this issue.

jun-he avatar Aug 05 '25 05:08 jun-he