File tree Expand file tree Collapse file tree 1 file changed +8
-2
lines changed
Expand file tree Collapse file tree 1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -166,13 +166,19 @@ public function waitForCommit(
166166 'target_commit ' => $ target_commit ,
167167 ]);
168168 if ($ startTime ->diff (new \DateTime ())->s > $ maxWaitInSeconds ) {
169- throw new TerminusException ('Exceeded maximum wait time of {max} seconds. ' , ['max ' => $ maxWaitInSeconds ]);
169+ throw new TerminusException (
170+ 'Exceeded maximum wait time of {max} seconds. ' ,
171+ ['max ' => $ maxWaitInSeconds ]
172+ );
170173 }
171174 }
172175
173176 while (!$ wfl ->isFinished ()) {
174177 if ($ startTime ->diff (new \DateTime ())->s > $ maxWaitInSeconds ) {
175- throw new TerminusException ('Exceeded maximum wait time of {max} seconds. ' , ['max ' => $ maxWaitInSeconds ]);
178+ throw new TerminusException (
179+ 'Exceeded maximum wait time of {max} seconds. ' ,
180+ ['max ' => $ maxWaitInSeconds ]
181+ );
176182 }
177183 $ this ->log ()->notice ('Waiting for workflow {id} to complete. ' , ['id ' => $ wfl ->id ,]);
178184 sleep ($ this ->getConfig ()->get ('refresh_workflow_delay ' , 30 ));
You can’t perform that action at this time.
0 commit comments