|
MediaWiki
REL1_21
|
Degenerate job that does nothing, but can optionally replace itself in the queue and/or sleep for a brief time period. More...


Public Member Functions | |
| __construct ($title, $params, $id=0) | |
| run () | |
| Run the job. | |
Degenerate job that does nothing, but can optionally replace itself in the queue and/or sleep for a brief time period.
These can be used to represent "no-op" jobs or test lock contention and performance.
Definition at line 31 of file NullJob.php.
| NullJob::__construct | ( | $ | title, |
| $ | params, | ||
| $ | id = 0 |
||
| ) |
| $title | Title (can be anything) | |
| array | $params | job parameters (lives, usleep) |
| $id | Integer: job id |
Definition at line 37 of file NullJob.php.
References Job\$id, Job\$params, Job\$title, and empty.
| NullJob::run | ( | ) |
Run the job.
Reimplemented from Job.
Definition at line 48 of file NullJob.php.
References $job, Job\$params, JobQueueGroup\singleton(), and title.