My rails app’s using a queue of tasks that should be handled
Task handling should be done in the following way:
- rails app does some basic logic and puts the further work into the
queue of tasks.
- task manager pops the task off the queue and either delegates it to
a worker thread or puts the task back to the queue.
- then the worker basically does its job.
I’m currently looking into starling/workling but can’t see how to
implement the task manager logic on top of it. It looks that by using
starling/working once a task is in the queue, there is no way to
control its execution, e.g. choose the worker to run the task or
decide if the task should be sent back or dropped.
What do you think can solve my problem?