Skip to content

Commit

Permalink
more linting complaints
Browse files Browse the repository at this point in the history
  • Loading branch information
namespacebrian committed Mar 5, 2025
1 parent c906f20 commit 0fd4244
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Commands/Workflow/WaitCommand.php
Original file line number Diff line number Diff line change
Expand Up @@ -166,13 +166,19 @@ public function waitForCommit(
'target_commit' => $target_commit,
]);
if ($startTime->diff(new \DateTime())->s > $maxWaitInSeconds) {
throw new TerminusException('Exceeded maximum wait time of {max} seconds.', ['max' => $maxWaitInSeconds]);
throw new TerminusException(
'Exceeded maximum wait time of {max} seconds.',
['max' => $maxWaitInSeconds]
);
}
}

while (!$wfl->isFinished()) {
if ($startTime->diff(new \DateTime())->s > $maxWaitInSeconds) {
throw new TerminusException('Exceeded maximum wait time of {max} seconds.', ['max' => $maxWaitInSeconds]);
throw new TerminusException(
'Exceeded maximum wait time of {max} seconds.',
['max' => $maxWaitInSeconds]
);
}
$this->log()->notice('Waiting for workflow {id} to complete.', ['id' => $wfl->id,]);
sleep($this->getConfig()->get('refresh_workflow_delay', 30));
Expand Down

0 comments on commit 0fd4244

Please sign in to comment.