I'm migrating from Delayed_jobs to Resque and I have difficulties finding the best way to handle those cases:
-
A user can NOT add twice the same command to the list of jobs (e.g. "export all my data"). Only one export command at a time. For other it's fine to have many (e.g. send emails)
-
Some jobs should not run for more than 5 minutes, while other are allowed to run for 30 minutes. In both cases, I'd like to have a time-out in case process is blocked or is not completed on time.
-
Can add jobs to start in a few days
-
Inform the user on all their current & future jobs.
-
Can cancel some jobs (current and future) for the user
-
Keep ability to have different lists (mostly for priorities / slow and fast tasks)
I looked at resque-status and it seems like it provides the low level query, but I would still need to do my per user job management.
Suggestions on best way to handle this?
Aucun commentaire:
Enregistrer un commentaire