- Openclerk\Jobs\JobRunner
- Core\OpenclerkJobRunner
- \OpenclerkJobRunnerSystem
- Core\OpenclerkJobRunner
class (none) \ OpenclerkJobRunnerSystem
Run jobs from system users.
TODO create more intelligent job selection methods (from JobRunner)
Method Summary
Name | Description |
---|---|
findJob(Connection $db, Logger $logger) | Find a job that belongs to the system user. |
Inherited Method Summary
Name | Description |
---|---|
__construct() | (from JobRunner) |
createJob($job, Connection $db, Logger $logger) | Just creates GenericOpenclerkJobs for now (from OpenclerkJobRunner) |
defaultFindJobQuery() | (from JobRunner) |
runOne(Connection $db, Logger $logger) | Select and run a Job. If the job throws an exception, the job runner will capture this exception and mark the job as failed as necessary. (from JobRunner) |
isJobsDisabled(Logger $logger) | (from OpenclerkJobRunner) |
public function findJob(Connection $db, Logger $logger)
Find a job that belongs to the system user.
- Overrides:
- findJob(Connection $db, Logger $logger)
- Returns:
a job array (id, job_type, [user_id], [arg_id]) orfalse
if there is none