Skip to content

Commit 6c0f58f

Browse files
glaubinixnaderman
andauthored
Apply suggestions from code review
Co-authored-by: Nils Adermann <[email protected]>
1 parent 5fbb7d8 commit 6c0f58f

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -560,7 +560,7 @@ Returns the job.
560560
##### Wait for a job to finish
561561
This 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);
565565
try {
566566
$job = $jobHelper->waitForJob($jobId, $numberOfSecondsToWait);

src/JobHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff 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()) {

0 commit comments

Comments
 (0)