Example #1
0
 /**
  * @param JobList $jobList
  * @param \OC\Log $logger
  */
 public function execute($jobList, $logger = null)
 {
     $jobList->setLastRun($this);
     try {
         $this->run($this->argument);
     } catch (\Exception $e) {
         if ($logger) {
             $logger->error('Error while running background job: ' . $e->getMessage());
         }
         $jobList->remove($this, $this->argument);
     }
 }
Example #2
0
 /**
  * run the job, then remove it from the joblist
  *
  * @param JobList $jobList
  * @param \OC\Log $logger
  */
 public function execute($jobList, $logger = null)
 {
     $jobList->remove($this, $this->argument);
     parent::execute($jobList, $logger);
 }
Example #3
0
<?php

require_once 'config.php';
View::$title = 'Jobs at High Fidelity';
View::write('page', 'jobs');
View::addScript('js/three.min.js');
View::addScript('js/jobs.js');
View::addStyle('css/jobs.css');
$jobList = new JobList();
View::write('jobList', $jobList->get());
View::renderCommonLayout('jobs');