mirror of
https://github.com/ershisan99/coolify.git
synced 2025-12-17 20:49:32 +00:00
fix: notifications
This commit is contained in:
@@ -33,11 +33,9 @@ class ApplicationContainerStatusJob implements ShouldQueue, ShouldBeUnique
|
||||
}
|
||||
public function handle(): void
|
||||
{
|
||||
ray('checking status of ' . $this->container_name);
|
||||
try {
|
||||
$status = get_container_status(server: $this->application->destination->server, container_id: $this->container_name, throwError: false);
|
||||
ray($this->application->status, $status);
|
||||
if ($this->application->status === 'running' && $status !== 'running') {
|
||||
if ($this->application->status === 'running' && $status === 'stopped') {
|
||||
$this->application->environment->project->team->notify(new ApplicationStoppedNotification($this->application));
|
||||
}
|
||||
|
||||
|
||||
@@ -28,6 +28,7 @@ class ProxyCheckJob implements ShouldQueue
|
||||
if ($status === 'running') {
|
||||
continue;
|
||||
}
|
||||
// $server->team->notify(new ProxyStoppedNotification($server));
|
||||
resolve(StartProxy::class)($server);
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
|
||||
Reference in New Issue
Block a user