| 1 | <?php |
||
| 20 | class Task extends BuildTask |
||
| 21 | { |
||
| 22 | |||
| 23 | private const EXPIRY_HOURS = 24; |
||
| 24 | private const EXPIRY_LIMIT = 10000; |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @var string |
||
| 28 | */ |
||
| 29 | private static $segment = 'queued-jobs-cleanup'; |
||
|
|
|||
| 30 | |||
| 31 | /** |
||
| 32 | * @var string |
||
| 33 | */ |
||
| 34 | protected $description = 'Delete job descriptors that are older than the configured expiry'; |
||
| 35 | |||
| 36 | /** |
||
| 37 | * @param HTTPRequest $request |
||
| 38 | */ |
||
| 39 | public function run($request): void // phpcs:ignore SlevomatCodingStandard.TypeHints |
||
| 63 | } |
||
| 64 |