protected function reportBackgroundProcess($process_id)
    {
        if (empty($this->queue) || empty($this->queue_id)) {
            throw new LogicException('Background process can be reported only for enqueued jobs');
        }

        if (!is_int($process_id) || $process_id < 1) {
            throw new InvalidArgumentException('Process ID is required');
        }

        $this->queue->reportBackgroundProcess($this, $process_id);

        return new ProcessLaunched($process_id);
    }
protected function reportBackgroundProcess($process_id)
    {
        if (empty($this->queue) || empty($this->queue_id)) {
            throw new LogicException('Background process can be reported only for enqueued jobs');
        }

        if (!is_int($process_id) || $process_id < 1) {
            throw new InvalidArgumentException('Process ID is required');
        }

        $this->queue->reportBackgroundProcess($this, $process_id);

        return new ProcessLaunched($process_id);
    }
protected function reportBackgroundProcess ( $ process_id ) { if ( empty ( $ this -> queue ) || empty ( $ this -> queue_id ) ) { throw new LogicException ( 'Background process can be reported only for enqueued jobs' ) ; } if ( ! is_int ( $ process_id ) || $ process_id < 1 ) { throw new InvalidArgumentException ( 'Process ID is required' ) ; } $ this -> queue -> reportBackgroundProcess ( $ this , $ process_id ) ; return new ProcessLaunched ( $ process_id ) ; }
Report that this job has launched a background process.

@param  int                             $process_id
@return SignalInterface|ProcessLaunched
Report that this job has launched a background process .