mirror of
https://github.com/tiennm99/coolify.git
synced 2026-04-17 17:21:04 +00:00
Fix restart initiated duplicate and restore activity logs
- Add restartInitiated flag to prevent duplicate "Proxy restart initiated" messages - Restore ProxyStatusChangedUI dispatch with activityId in RestartProxyJob - This allows the UI to open the activity monitor and show logs during restart - Simplified restart message (removed redundant "Monitor progress" text) 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
@@ -46,9 +46,11 @@ class RestartProxyJob implements ShouldBeEncrypted, ShouldQueue
|
||||
// listener that handles UI updates and Traefik version checks
|
||||
$activity = StartProxy::run($this->server, force: true, restarting: true);
|
||||
|
||||
// Store activity ID for reference
|
||||
// Store activity ID and dispatch event with it so UI can open activity monitor
|
||||
if ($activity && is_object($activity)) {
|
||||
$this->activity_id = $activity->id;
|
||||
// Dispatch event with activity ID so the UI can show logs
|
||||
ProxyStatusChangedUI::dispatch($this->server->team_id, $this->activity_id);
|
||||
}
|
||||
|
||||
} catch (\Throwable $e) {
|
||||
|
||||
Reference in New Issue
Block a user