TritonDataCenter / node-workflow

Task orchestration, creation and running using NodeJS
MIT License
456 stars 66 forks source link

[ Question ] Multiple Runners Managing Job Queue #161

Open maggiejiangtda opened 7 years ago

maggiejiangtda commented 7 years ago

Hi,

Trying to understand how multiple workflow runners manage a jobs queue. If both runners happen to pick up a job at the same time, how would one runner yield to another? I understand that when a runner picks up a job, it marks it's name in the runner_id field but if they both pick up the job and try to update the backend at the same time with their respective runner Ids, how would it be handled then?

Thanks.