File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -560,7 +560,7 @@ Returns the job.
560560##### Wait for a job to finish
561561This will periodically poll the job status until the job either finished or the maximum wait time was reached
562562``` php
563- $numberOfSecondsToWait = 30 ;
563+ $numberOfSecondsToWait = 180 ;
564564$jobHelper = new \PrivatePackagist\ApiClient\JobHelper($client);
565565try {
566566 $job = $jobHelper->waitForJob($jobId, $numberOfSecondsToWait);
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public function __construct(Client $packagistClient)
2121 * @param int $waitInterval
2222 * @return array
2323 */
24- public function waitForJob ($ jobId , $ maxWaitSeconds = 30 , $ waitInterval = 5 )
24+ public function waitForJob ($ jobId , $ maxWaitSeconds = 180 , $ waitInterval = 5 )
2525 {
2626 $ maxWaitTime = new \DateTimeImmutable (sprintf ('+%s seconds ' , $ maxWaitSeconds ));
2727 while ($ maxWaitTime > new \DateTimeImmutable ()) {
You can’t perform that action at this time.
0 commit comments