11 $jobq = JobQueueGroup::singleton();
13 $jobq->push(
new NullJob( Title::newMainPage(), [] ) );
15 'A single job enqueued bumps jobscount stat to 1' );
17 $jobq->push(
new NullJob( Title::newMainPage(), [] ) );
19 'SiteStats::jobs() count does not reflect addition ' .
20 'of a second job (cached)'
23 $jobq->get(
'null' )->delete();
25 'Job queue for NullJob has been cleaned' );
27 $cache->delete(
$cache->makeKey(
'SiteStats',
'jobscount' ) );
29 'jobs count is kept in process cache' );
31 $cache->clearProcessCache();
and that you know you can do these things To protect your we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights These restrictions translate to certain responsibilities for you if you distribute copies of the or if you modify it For if you distribute copies of such a whether gratis or for a you must give the recipients all the rights that you have You must make sure that receive or can get the source code And you must show them these terms so they know their rights We protect your rights with two and(2) offer you this license which gives you legal permission to copy
Simple store for keeping values in an associative array for the current process.
Degenerate job that does nothing, but can optionally replace itself in the queue and/or sleep for a b...
testJobsCountGetCached()
SiteStats::jobs.
static jobs()
Total number of jobs in the job queue.
Multi-datacenter aware caching interface.