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.
560
560
##### Wait for a job to finish
561
561
This will periodically poll the job status until the job either finished or the maximum wait time was reached
562
562
``` php
563
- $numberOfSecondsToWait = 30 ;
563
+ $numberOfSecondsToWait = 180 ;
564
564
$jobHelper = new \PrivatePackagist\ApiClient\JobHelper($client);
565
565
try {
566
566
$job = $jobHelper->waitForJob($jobId, $numberOfSecondsToWait);
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ public function __construct(Client $packagistClient)
21
21
* @param int $waitInterval
22
22
* @return array
23
23
*/
24
- public function waitForJob ($ jobId , $ maxWaitSeconds = 30 , $ waitInterval = 5 )
24
+ public function waitForJob ($ jobId , $ maxWaitSeconds = 180 , $ waitInterval = 5 )
25
25
{
26
26
$ maxWaitTime = new \DateTimeImmutable (sprintf ('+%s seconds ' , $ maxWaitSeconds ));
27
27
while ($ maxWaitTime > new \DateTimeImmutable ()) {
You can’t perform that action at this time.
0 commit comments