public function processOne(ObjectId $id): void
    {
        $this->catchSignal();

        $this->logger->debug('process job ['.$id.'] and exit', [
            'category' => get_class($this),
        ]);

        try {
            $job = $this->scheduler->getJob($id)->toArray();
            $this->queueJob($job);
        } catch (\Exception $e) {
            $this->logger->error('failed process job ['.$id.']', [
                'category' => get_class($this),
                'exception' => $e,
            ]);
        }
    }
public function processOne(ObjectId $id): void
    {
        $this->catchSignal();

        $this->logger->debug('process job ['.$id.'] and exit', [
            'category' => get_class($this),
        ]);

        try {
            $job = $this->scheduler->getJob($id)->toArray();
            $this->queueJob($job);
        } catch (\Exception $e) {
            $this->logger->error('failed process job ['.$id.']', [
                'category' => get_class($this),
                'exception' => $e,
            ]);
        }
    }
public function processOne ( ObjectId $ id ) : void { $ this -> catchSignal ( ) ; $ this -> logger -> debug ( 'process job [' . $ id . '] and exit' , [ 'category' => get_class ( $ this ) , ] ) ; try { $ job = $ this -> scheduler -> getJob ( $ id ) -> toArray ( ) ; $ this -> queueJob ( $ job ) ; } catch ( \ Exception $ e ) { $ this -> logger -> error ( 'failed process job [' . $ id . ']' , [ 'category' => get_class ( $ this ) , 'exception' => $ e , ] ) ; } }
Process one.
Process one .