File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments