Exemplo n.º 1
0
 /**
  * Registers a new process in the system with the given data
  *
  * @param Package $package
  * @param string|int $runtime the string of the run datetime, or the number of minutes in which to run the process after the current datetime
  * @param null|string $category the category that it belongs to
  */
 public static function register(Package $package, $runtime = 0, $category = null)
 {
     $repo = new ProcessQueueRepository();
     $repo->registerPackage($package, $runtime, $category);
 }
Exemplo n.º 2
0
 /**
  * De-registers the current process, removing it from the database so that it doesn't actually run again.
  */
 private function deRegister()
 {
     $this->queue_repo->remove($this->process_queue);
 }