src/JobQueue.php
private function saveJobState(JobConfigurationInterface $configuration, $state)
    {
        $configuration->setState($state);
        $this->configurationManager->add($configuration, true);
        
        $this->eventDispatcher->dispatch(JobQueueEvents::CHANGE_JOB_STATE, new JobEvent($configuration));
    }
private function saveJobState(JobConfigurationInterface $configuration, $state)
    {
        $configuration->setState($state);
        $this->configurationManager->add($configuration, true);
        
        $this->eventDispatcher->dispatch(JobQueueEvents::CHANGE_JOB_STATE, new JobEvent($configuration));
    }
private function saveJobState ( JobConfigurationInterface $ configuration , $ state ) { $ configuration -> setState ( $ state ) ; $ this -> configurationManager -> add ( $ configuration , true ) ; $ this -> eventDispatcher -> dispatch ( JobQueueEvents :: CHANGE_JOB_STATE , new JobEvent ( $ configuration ) ) ; }
Save job state.

@param JobConfigurationInterface $configuration
@param string $state
Save job state .