ClearStuckJobs
extends Command
in package
Table of Contents
Properties
- $description : mixed
- $signature : mixed
- $jobCleanupService : JobCleanupService
Methods
- __construct() : mixed
- handle() : int
Properties
$description
protected
mixed
$description
= 'Clear stuck job locks and failed jobs'
$signature
protected
mixed
$signature
= 'jobs:clear-stuck {--dry-run : Show what would be cleared without actually clearing} {--max-age=4 : Maximum age in hours for stuck locks}'
$jobCleanupService read-only
private
JobCleanupService
$jobCleanupService
Methods
__construct()
public
__construct(JobCleanupService $jobCleanupService) : mixed
Parameters
- $jobCleanupService : JobCleanupService
handle()
public
handle() : int