wildhart / meteor.jobs

A simple job scheduler for Meteor.js
MIT License
18 stars 9 forks source link

Potential for a job to be executed on two servers simultaneously #2

Closed wildhart closed 5 years ago

wildhart commented 5 years ago

Consider the situation

  1. Server A is about to just about to or is currently executing "anyJob".
  2. At that precise moment Server B reacts to a client interaction and schedules a new job in the future.
  3. Server B will immediately take control, find the next job (which will still be "anyJob") and execute it as well.

See here for a potential fix.