I need someone who is very very familiar with running Horizon Jobs on laravel.
We are attempting to gracefully do a blue/green model with our horizon containers, and we require a Laravel command that will output the information about jobs that are currently executing on the current host.
A few important notes:
The horizon dashboard does not provide this –
Pending Jobs are not necessarily actively running.
Some jobs can be abandoned and are not actually executing
A host could be running multiple supervisors
A given supervisor name is only running on one host
The jobs are all running as a subclass of: abstract class RetriableJob implements ShouldQueue
We are specifically trying to determine the list of job id’s that are currently executing on the host.
The output of the command should be a list of:
JOB_ID, JOB_CLASS, QUEUE NAME, START_TIME