mirror of
https://github.com/tiennm99/coolify.git
synced 2026-09-04 18:19:55 +00:00
horizon manage command
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
<?php
|
||||
|
||||
namespace App\Contracts;
|
||||
|
||||
use Illuminate\Support\Collection;
|
||||
use Laravel\Horizon\Contracts\JobRepository;
|
||||
|
||||
interface CustomJobRepositoryInterface extends JobRepository
|
||||
{
|
||||
/**
|
||||
* Get all jobs with a specific status.
|
||||
*/
|
||||
public function getJobsByStatus(string $status): Collection;
|
||||
|
||||
/**
|
||||
* Get the count of jobs with a specific status.
|
||||
*/
|
||||
public function countJobsByStatus(string $status): int;
|
||||
|
||||
/**
|
||||
* Get jobs that have been running longer than a specified duration in seconds.
|
||||
*/
|
||||
public function getLongRunningJobs(int $seconds): Collection;
|
||||
}
|
||||
Reference in New Issue
Block a user