Skip to content

Understanding the round robin behavior between processes #944

Answered by manast
thetutlage asked this question in Q&A
Discussion options

You must be logged in to vote

Ok, so the issue is that the default "drainDelay" is too low for this example to behave as you expect. If you change it to 30s it will behave correcty:

new Worker(
  "video transcoding",
  function (job) {
    console.log(job.data);
    console.log({ name });
  },
  { drainDelay: 30 }
);

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
2 replies
@thetutlage
Comment options

@manast
Comment options

Comment options

You must be logged in to vote
2 replies
@thetutlage
Comment options

@manast
Comment options

Answer selected by manast
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants