Skip to content

Commit 3fa0a7c

Browse files
authored
Add missing horizon tasks (#4078)
* Add missing horizon tasks * Update laravel.php * Update laravel.php * format * Generate docs * Fix formatting * Add docs
1 parent ca4b295 commit 3fa0a7c

File tree

2 files changed

+48
-15
lines changed

2 files changed

+48
-15
lines changed

docs/recipe/laravel.md

Lines changed: 39 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -428,120 +428,144 @@ Publish all of the Horizon resources.
428428

429429

430430

431+
### artisan\:horizon\:supervisors {#artisan-horizon-supervisors}
432+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L212)
433+
434+
Lists all of the supervisors.
435+
436+
437+
438+
439+
### artisan\:horizon\:clear-metrics {#artisan-horizon-clear-metrics}
440+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L215)
441+
442+
Deletes metrics for all jobs and queues.
443+
444+
445+
446+
447+
### artisan\:horizon\:snapshot {#artisan-horizon-snapshot}
448+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L218)
449+
450+
Stores a snapshot of the queue metrics.
451+
452+
453+
454+
431455
### artisan\:schedule\:interrupt {#artisan-schedule-interrupt}
432-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L216)
456+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L225)
433457

434458
Interrupt in-progress schedule:run invocations.
435459

436460
Scheduler.
437461

438462

439463
### artisan\:telescope\:clear {#artisan-telescope-clear}
440-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L223)
464+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L232)
441465

442466
Clears all entries from Telescope.
443467

444468
Telescope.
445469

446470

447471
### artisan\:telescope\:prune {#artisan-telescope-prune}
448-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L226)
472+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L235)
449473

450474
Prunes stale entries from the Telescope database.
451475

452476

453477

454478

455479
### artisan\:octane {#artisan-octane}
456-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L233)
480+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L242)
457481

458482
Starts the octane server.
459483

460484
Octane.
461485

462486

463487
### artisan\:octane\:reload {#artisan-octane-reload}
464-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L236)
488+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L245)
465489

466490
Reloads the octane server.
467491

468492

469493

470494

471495
### artisan\:octane\:stop {#artisan-octane-stop}
472-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L239)
496+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L248)
473497

474498
Stops the octane server.
475499

476500

477501

478502

479503
### artisan\:octane\:status {#artisan-octane-status}
480-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L242)
504+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L251)
481505

482506
Check the status of the octane server.
483507

484508

485509

486510

487511
### artisan\:nova\:publish {#artisan-nova-publish}
488-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L249)
512+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L258)
489513

490514
Publish all of the Laravel Nova resources.
491515

492516
Nova.
493517

494518

495519
### artisan\:reverb\:start {#artisan-reverb-start}
496-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L256)
520+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L265)
497521

498522
Starts the Reverb server.
499523

500524
Reverb.
501525

502526

503527
### artisan\:reverb\:restart {#artisan-reverb-restart}
504-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L259)
528+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L268)
505529

506530
Restarts the Reverb server.
507531

508532

509533

510534

511535
### artisan\:pulse\:check {#artisan-pulse-check}
512-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L266)
536+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L275)
513537

514538
Starts the Pulse server.
515539

516540
Pulse.
517541

518542

519543
### artisan\:pulse\:restart {#artisan-pulse-restart}
520-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L269)
544+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L278)
521545

522546
Restarts the Pulse server.
523547

524548

525549

526550

527551
### artisan\:pulse\:purge {#artisan-pulse-purge}
528-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L272)
552+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L281)
529553

530554
Purges all Pulse data from storage.
531555

532556

533557

534558

535559
### artisan\:pulse\:work {#artisan-pulse-work}
536-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L275)
560+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L284)
537561

538562
Process incoming Pulse data from the ingest stream.
539563

540564

541565

542566

543567
### deploy {#deploy}
544-
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L281)
568+
[Source](https://github.com/deployphp/deployer/blob/master/recipe/laravel.php#L290)
545569

546570
Deploys your project.
547571

recipe/laravel.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,15 @@ function laravel_version_compare($version, $comparator)
208208
desc('Publish all of the Horizon resources');
209209
task('artisan:horizon:publish', artisan('horizon:publish'));
210210

211+
desc('Lists all of the supervisors');
212+
task('artisan:horizon:supervisors', artisan('horizon:supervisors', ['showOutput']));
213+
214+
desc('Deletes metrics for all jobs and queues');
215+
task('artisan:horizon:clear-metrics', artisan('horizon:clear-metrics'));
216+
217+
desc('Stores a snapshot of the queue metrics');
218+
task('artisan:horizon:snapshot', artisan('horizon:snapshot'));
219+
211220
/*
212221
* Scheduler.
213222
*/

0 commit comments

Comments
 (0)