Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 12 additions & 2 deletions ProcessMaker/Console/Commands/TransitionExecutors.php
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,7 @@ public function handle(): int
return 0;
}

$client = new Client($url);
$client->setTimeout($timeout);
$client = $this->createBroadcastClient($url, (int) $timeout);

$index = 0;
$total = $executors->count();
Expand Down Expand Up @@ -176,4 +175,15 @@ private function getExecutors($uuid): Collection

return $query->get();
}

/**
* Create the websocket client used to listen for build events.
*/
protected function createBroadcastClient(string $url, int $timeout): Client
{
$client = new Client($url);
$client->setTimeout($timeout);

return $client;
}
}
Loading
Loading