FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

Allow jobs to perform a pre-run check and be requeued by egerlach · Pull Request #3 · TribeHR/cakephp_queue · GitHub

Allow jobs to perform a pre-run check and be requeued - #3

Merged
iniq merged 1 commit into
masterfrom
add_requeueing_and_canRun
Mar 7, 2013
Merged

Allow jobs to perform a pre-run check and be requeued#3
iniq merged 1 commit into
masterfrom
add_requeueing_and_canRun

Conversation

egerlach commented Mar 7, 2013

Copy link
Copy Markdown

There are intstances (for example when an account is in maintenance mode) that
it would be unwise to actually perform a queued task. Only the task knows what
those conditions are for itself, so we delegate the job of knowing that to the
task in the canRun() method.

But now we have three outcomes for a job: Done, Failed, and Couldn't run. Add a
new method to the QueuedTask Model to support requeuing a job that isn't
failed.

There are intstances (for example when an account is in maintenance mode) that
it would be unwise to actually perform a queued task. Only the task knows what
those conditions are for itself, so we delegate the job of knowing that to the
task in the canRun() method.

But now we have three outcomes for a job: Done, Failed, and Couldn't run. Add a
new method to the QueuedTask Model to support requeuing a job that isn't
failed.
iniq added a commit that referenced this pull request Mar 7, 2013
Allow jobs to perform a pre-run check and be requeued
iniq merged commit 23153c4 into master Mar 7, 2013
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants


Back | FazBrowse Home | New Git URL