I'm trying to understand the best approach on implementing a "state machine scheduler"
This will use a table to store all the jobs that need to be schedule and a queue that will contain the jobs to be done ( workers will get the messages and do the logic )
This module must be generic and handle all the background process that we want to do.
We thought of implementing instead of using existing modules but I'm have a bit of trouble with all the workers logic and thread management,
I would like if you can recommend some of the modules ( maybe i missed some )
and which is the best way to manage the workers/threads that will listen all the time to the queue.
Thanks in advance