Integrate Job Queue with Rules
| Project: | Job queue |
| Version: | 6.x-3.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | active |
| Issue tags: | rules integration, threaded sessions |
Jump to:
I was just thinking how awesome this module is for putting a buffer between time-intensive actions like sending emails and time-sensitive events such as a the user's page load, but then I was disappointed that the user may have to wait for the next cron run to get important info.
The ideal solution for this would be to integrate with Rules, of course. For instance, whenever an action is triggered that adds something to the queue, it could also tell it to run the job queue. Now I'm not the most experienced programmer, but given that job queue already has measures in place to keep php from failing, it seems reasonable to request job queue begin processing when it's called for.
So the integration might look like a "job is added" event and a "begin processing queue" action. This also leads me to believe "job is removed" and "stop processing queue" might also be helpful.

#1
Another way to put this, in terms of threading, is users can trigger one or a series of actions, and they wouldn't have to wait for the entire list of queued actions to occur.
Just because a user triggers a behavior, doesn't necessarily mean the continuity of their session is dependent on those things happening before Drupal adjusts their environment.
#2
Any news about this feature ?
Maybe the integration should be done the other way around, as it is Rules that would be using job queue for its actions...?