Skip to content

Commit 1d32449

Browse files
committed
job id
1 parent 5348a9b commit 1d32449

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/ClientV2.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,12 +145,12 @@ public function enqueueAndGetResult(
145145
throw new MindeeException("Enqueueing of the document failed.");
146146
}
147147

148-
$queueId = $enqueueResponse->job->id;
149-
error_log("Successfully enqueued document with job id: " . $queueId);
148+
$jobId = $enqueueResponse->job->id;
149+
error_log("Successfully enqueued document with job ID: " . $jobId);
150150

151151
$this->customSleep($pollingOptions->initialDelaySec);
152152
$retryCounter = 1;
153-
$pollResults = $this->getJob($queueId);
153+
$pollResults = $this->getJob($jobId);
154154

155155
while ($retryCounter < $pollingOptions->maxRetries) {
156156
if ($pollResults->job->status === "Failed") {
@@ -161,13 +161,13 @@ public function enqueueAndGetResult(
161161
}
162162

163163
error_log(
164-
"Polling server for parsing result with queueId: " . $queueId .
164+
"Polling server for parsing result with job ID: " . $jobId .
165165
". Attempt number " . $retryCounter . " of " . $pollingOptions->maxRetries .
166166
". Job status: " . $pollResults->job->status
167167
);
168168

169169
$this->customSleep($pollingOptions->delaySec);
170-
$pollResults = $this->getJob($queueId);
170+
$pollResults = $this->getJob($jobId);
171171
$retryCounter++;
172172
}
173173

0 commit comments

Comments
 (0)