Optimize PushServerUpdateJob with batch updates and async jobs (#7639)

This commit is contained in:
Andras Bacsai authored and GitHub committed 2025-12-16 12:22:24 +01:00
commit 2646fb81eb
6 files changed
+182 -109

No files matched your search

+2 -2
View File
@@ -2,6 +2,7 @@
namespace App\Livewire\Server;
use App\Jobs\ConnectProxyToNetworksJob;
use App\Models\Server;
use App\Models\StandaloneDocker;
use App\Models\SwarmDocker;
@@ -29,8 +30,7 @@ class Destinations extends Component
private function createNetworkAndAttachToProxy()
{
$connectProxyToDockerNetworks = connectProxyToNetworks($this->server);
instant_remote_process($connectProxyToDockerNetworks, $this->server, false);
ConnectProxyToNetworksJob::dispatchSync($this->server);
}
public function add($name)