Download the PHP package openclerk/jobs without Composer
On this page you can find all versions of the php package openclerk/jobs. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download openclerk/jobs
More information about openclerk/jobs
Files in openclerk/jobs
Download openclerk/jobs
More information about openclerk/jobs
Files in openclerk/jobs
Vendor openclerk
Package jobs
Short Description Simple PHP job queueing, execution and management
License
Package jobs
Short Description Simple PHP job queueing, execution and management
License
Please rate this library. Is it a good library?
Informations about the package jobs
openclerk/jobs
A library for simple PHP job queueing, execution and management, used by Openclerk and live on CryptFolio.
While cron jobs are a simple approach to running regular tasks,
openclerk/jobs
allows tasks to be defined, executed and managed in reliable ways.
Installing
Include openclerk/jobs
as a requirement in your project composer.json
,
and run composer update
to install it into your project:
Features
- Queue up jobs immediately for execution later
- Jobs can return success or failure (by throwing exceptions)
- Repeatedly failing jobs can be removed from the job execution queue
- Define your own job selection algorithms
- Any exceptions thrown during job execution are stored in the
job_exceptions
table
Using
Define a job class
Define a job queuer
Define a job runner
Write batch scripts to execute the queuer and runner
For example, a batch script to queue up new jobs:
Or, a batch script to run a single job:
These batch scripts can then be setup with cron, etc.
Extensions
- Using
require()
for running jobs instead of classes - Run jobs only of a certain type
- Run jobs only of users with particular properties
- Run jobs only with a particular job ID
- Run jobs from a web admin interface
Donate
TODO
- Capture jobs that timeout
- job_failed events through openclerk/events
- More tests
All versions of jobs with dependencies
PHP Build Version
Package Version
Requires
openclerk/config Version
^0.1
openclerk/db Version ^0.1
openclerk/events Version ^0.2
monolog/monolog Version ~1.11
openclerk/db Version ^0.1
openclerk/events Version ^0.2
monolog/monolog Version ~1.11
The package openclerk/jobs contains the following files
Loading the files please wait ....