Skip to content
Discussion options

You must be logged in to vote

Hey @arthurvanl!

Great question. I investigated the flow job + graceful shutdown behavior in detail. Here's what happens:

Short answer: The next step (handle-products) will be promoted to the queue after parse-products completes and is ACKed. However, since the worker is shutting down, it won't pick up the new job.

What happens step by step:

  1. parse-products completes -> worker sends ACK
  2. ACK triggers dependency resolution via microtask (very fast, same event loop tick)
  3. handle-products is promoted from waitingDeps to the active queue
  4. But the worker is in closing state -> it stops polling for new jobs
  5. handle-products sits in the queue with no worker to process it

With SQLite persistence (da…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by arthurvanl
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
question Further information is requested
2 participants