JobRestartService
in package
Table of Contents
Properties
Methods
- __construct() : mixed
- getStuckJobs() : array<string|int, Job>|null
- tryProceedJobRestart() : mixed
Properties
$jobMainHandlerComponent
private
JobMainHandlerComponent
$jobMainHandlerComponent
$jobRepository
private
JobRepository
$jobRepository
Methods
__construct()
public
__construct(JobRepository $jobRepository, JobMainHandlerComponent $jobMainHandlerComponent) : mixed
Parameters
- $jobRepository : JobRepository
- $jobMainHandlerComponent : JobMainHandlerComponent
getStuckJobs()
public
getStuckJobs(int|null $updateTimeDifferenceHours) : array<string|int, Job>|null
Parameters
- $updateTimeDifferenceHours : int|null
Return values
array<string|int, Job>|nulltryProceedJobRestart()
public
tryProceedJobRestart(Job $stuckJob) : mixed
Parameters
- $stuckJob : Job