Skip to content

Commit

Permalink
Merge pull request #140 from ByteInternet/ensure-copied-app
Browse files Browse the repository at this point in the history
brancher polling waits for ensure_copied_app
  • Loading branch information
vdloo authored Jan 27, 2025
2 parents fe68f78 + 75db12c commit 55dc065
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Brancher/BrancherHypernodeManager.php
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ public function waitForAvailability(string $brancherHypernode, int $timeout = 15

try {
$flows = $this->hypernodeClient->logbook->getList($brancherHypernode);
$relevantFlows = array_filter($flows, fn(Flow $flow) => $flow->name === 'ensure_app');
$relevantFlows = array_filter($flows, fn(Flow $flow) => in_array($flow->name, ["ensure_app", "ensure_copied_app"], true));
$failedFlows = array_filter($relevantFlows, fn(Flow $flow) => $flow->isReverted());
$completedFlows = array_filter($relevantFlows, fn(Flow $flow) => $flow->isComplete());

Expand Down

0 comments on commit 55dc065

Please sign in to comment.