kubernetes-up-and-running / kuard

Demo app for Kubernetes Up and Running book
Apache License 2.0
1.59k stars 543 forks source link

Question about queue Job #19

Closed xujihui1985 closed 5 years ago

xujihui1985 commented 6 years ago

Hi, Jbeda

thanks for writing the book and this repo, I have a question after read the Job section, for the queue job that read the task from a mem queue ,and run to complete until all the task dequeued, what if new task added to queue after it finished the task? is it supposed to restart the stopped container to process the new task?

jbeda commented 5 years ago

Sorry I missed this when you created the issue!

If you are running to the point where the Job shutdown after draining the queue there is nothing built in that will restart/recreate the Job. You will need an external system to make sure that happens.

Thanks for the question!

xujihui1985 commented 5 years ago

thanks for your answer