Skip to content

Commit

Permalink
Merge pull request #9 from Laravel-Lang/1.x
Browse files Browse the repository at this point in the history
Added call to restart queues during deployment
  • Loading branch information
andrey-helldar authored Mar 23, 2024
2 parents d5c1b4c + ce91429 commit b7cc93d
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 0 deletions.
14 changes: 14 additions & 0 deletions actions/2024_03_23_211006_restart_all_failed_jobs.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?php

declare(strict_types=1);

use DragonCode\LaravelActions\Action;

return new class extends Action {
protected bool $before = false;

public function __invoke(): void
{
$this->artisan('queue:retry', ['id' => 'all']);
}
};
1 change: 1 addition & 0 deletions deploy.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
'artisan:actions:before',
'deploy:publish',
'php-fpm:reload',
'artisan:queue:restart',
'artisan:actions',
]);

Expand Down

0 comments on commit b7cc93d

Please sign in to comment.