mirror of
https://github.com/coollabsio/coolify.git
synced 2026-11-06 13:10:37 -04:00
- Do not ignore errors of the docker stop and rm commands, so a failed SSH call does not mark a running application as exited. - Log the failure and broadcast ApplicationStopFailed; the application page shows an error toast. Closes #11063 Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
28 lines
666 B
PHP
28 lines
666 B
PHP
<?php
|
|
|
|
namespace App\Events;
|
|
|
|
use Illuminate\Broadcasting\PrivateChannel;
|
|
use Illuminate\Contracts\Broadcasting\ShouldBroadcastNow;
|
|
use Illuminate\Foundation\Events\Dispatchable;
|
|
use Illuminate\Queue\SerializesModels;
|
|
|
|
/**
|
|
* Tells the application page that a queued stop did not stop the application.
|
|
*/
|
|
class ApplicationStopFailed implements ShouldBroadcastNow
|
|
{
|
|
use Dispatchable, SerializesModels;
|
|
|
|
public function __construct(
|
|
public int $teamId,
|
|
public string $applicationUuid,
|
|
public string $message,
|
|
) {}
|
|
|
|
public function broadcastOn(): array
|
|
{
|
|
return [new PrivateChannel("team.{$this->teamId}")];
|
|
}
|
|
}
|