getExecutionType() : string
get the execution type of background jobs
This method returns the type how background jobs are executed. If the user did not select something, the type is ajax.
This class provides functions to register backgroundjobs in ownCloud
To create a new backgroundjob create a new class that inherits from either \OC\BackgroundJob\Job, \OC\BackgroundJob\QueuedJob or \OC\BackgroundJob\TimedJob and register it using \OCP\BackgroundJob->registerJob($job, $argument), $argument will be passed to the run() function of the job when the job is executed.
A regular Job will be executed every time cron.php is run, a QueuedJob will only run once and a TimedJob will only run at a specific interval which is to be specified in the constructor of the job by calling $this->setInterval($interval) with $interval in seconds.
findQueuedTask(integer $id) : \OCP\BackgroundJob\IJob|null
ID of the task