Questiona about stopping an application while active jobs are still running #43
-
|
So I added the graceful-shutdown so it wont quit jobs. But it can be that a flow-job is in the middle of it's So for example a flow-job would be like
Lets say the server wants to stop when we are in And if it doesn't continue how is the |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
|
Hey @arthurvanl! Great question. I investigated the flow job + graceful shutdown behavior in detail. Here's what happens: Short answer: The next step ( What happens step by step:
With SQLite persistence (
|
Beta Was this translation helpful? Give feedback.
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 afterparse-productscompletes and is ACKed. However, since the worker is shutting down, it won't pick up the new job.What happens step by step:
parse-productscompletes -> worker sends ACKhandle-productsis promoted fromwaitingDepsto the active queueclosingstate -> it stops polling for new jobshandle-productssits in the queue with no worker to process itWith SQLite persistence (
da…