mirror of
https://github.com/coollabsio/coolify.git
synced 2026-06-14 03:19:51 +00:00
c9fcc0bc44
Ensure restart actions flow through StartService so pull-latest restarts can avoid stopping the service before image pulls. Also raise the changelog modal above the desktop sidebar toggle.
23 lines
430 B
PHP
23 lines
430 B
PHP
<?php
|
|
|
|
namespace App\Actions\Service;
|
|
|
|
use App\Models\Service;
|
|
use Lorisleiva\Actions\Concerns\AsAction;
|
|
|
|
class RestartService
|
|
{
|
|
use AsAction;
|
|
|
|
public string $jobQueue = 'high';
|
|
|
|
public function handle(Service $service, bool $pullLatestImages)
|
|
{
|
|
return StartService::run(
|
|
service: $service,
|
|
pullLatestImages: $pullLatestImages,
|
|
stopBeforeStart: true,
|
|
);
|
|
}
|
|
}
|