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

This commit is contained in:
Andras Bacsai
2025-12-16 12:22:24 +01:00
committed by GitHub
6 changed files with 182 additions and 109 deletions

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)