-
Notifications
You must be signed in to change notification settings - Fork 91
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Recurring Jobs #92
Comments
Hi, I'd need to perform some refactoring of my work, and write some additional tests before making PR, but I'm happy to do that if these features will be useful. |
A few of these changes might even be so useful as to make it all the way up to PHP-Resque and PHP-Resque-Scheduler themselves. For example, cron-like functionality has always been intended in Scheduler, but the required logic simply hasn't been written/submitted yet. If your code for that doesn't rely on any framework functionality, that suddenly becomes a lot easier. In other words, please, do. Worst case they'll say no. Best case they'll merge, and possibly even submit improvements upstream (though you could do that as well). Most likely there'll be a bit of back-and-forth on some of the minor details, but these seem like sound changes to include. |
👍 |
1 similar comment
+1 |
Apologies but I'm not going to do this - I've moved on from this - but the code is still available if anyone wants to extract it: |
Hi,
I've built on top of this bundle: https://github.com/usemarkup/JobQueueBundle
I was wondering if any of the features I've added would be better placed directly into this bundle.
Recurring Jobs
What I've added is a mechanism for adding console command jobs (executed within a job using the process component) via a recurring configuration file that is similar to the crontab (using cron syntax).
Reasons for this:
Queue Configuration
I've added stricter queue configuration, meaning that queues need to be defined in application configuration (ensuring jobs added in code have a defined way of being processed). Additionally this configuration can be read by a capistrano task which is able to automatically generate the supervisord configuration file based on the queues defined (currently automatically creates a single worker per queue, but this could be further configured via the config file).
Admin Interface
I've performed a minor refactoring here to support our own stack, I'd be happy to pull this out altogether and move into my own app/ folder
The text was updated successfully, but these errors were encountered: