Example #1
0
 /**
  * Create a new Process for the worker.
  *
  * @param  string  $connection
  * @param  string  $queue
  * @param  int     $delay
  * @param  int     $memory
  * @param  int     $timeout
  * @return \Symfony\Component\Process\Process
  */
 public function make_process($connection, $queue, $delay, $memory, $timeout)
 {
     // 6th argument: $sleep = true
     $command = $this->context->create_work_task_command($connection, $queue, $delay, $memory, $timeout, true);
     return new Process($command, $this->command_path, null, null, $timeout);
 }