src/Engine/ProcessEngine.php
public function scheduleJob(UUID $executionId, string $handlerType, $data, ?\DateTimeImmutable $runAt = null): ?JobInterface
    {
        if ($this->jobExecutor !== null) {
            return $this->jobExecutor->scheduleJob($executionId, $handlerType, $data, $runAt);
        }
    }
public function scheduleJob(UUID $executionId, string $handlerType, $data, ?\DateTimeImmutable $runAt = null): ?JobInterface
    {
        if ($this->jobExecutor !== null) {
            return $this->jobExecutor->scheduleJob($executionId, $handlerType, $data, $runAt);
        }
    }
public function scheduleJob ( UUID $ executionId , string $ handlerType , $ data , ? \ DateTimeImmutable $ runAt = null ) : ? JobInterface { if ( $ this -> jobExecutor !== null ) { return $ this -> jobExecutor -> scheduleJob ( $ executionId , $ handlerType , $ data , $ runAt ) ; } }
Schedule a job for execution.

This method will not cause an error in case of a missing job executor!

@param UUID $executionId Target execution being used by the job.
@param string $handlerType The name of the job handler.
@param mixed $data Arbitrary data to be passed to the job handler.
@param \DateTimeImmutable $runAt Scheduled execution time, a value of null schedules the job for immediate execution.
@return JobInterface The persisted job instance or null when no job executor has been configured.
Schedule a job for execution .