xcherryio / xcherry

server and main repo of xCherry project
Apache License 2.0
26 stars 1 forks source link

Fix bug of potential worker task rerunning #43

Open longquanzheng opened 1 year ago

longquanzheng commented 1 year ago

Idea : add a new bool field : current_attempt_started with the prepare query and reset on completion

This will require an additional write when task started which will result in perf degrade. So maybe it's better to make it an optional feature. It's only needed when users require accurate retry attempts management

longquanzheng commented 1 year ago

related to https://github.com/xdblab/xdb/issues/58