File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
AiServer.ServiceInterface Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -299,8 +299,8 @@ public static async Task<GenerationResponse> ProcessSyncGenerationAsync(this Cre
299
299
300
300
var completedResponse = new GenerationResponse { } ;
301
301
302
- // Wait for the job to complete max 20 minutes
303
- var timeout = DateTime . UtcNow . AddSeconds ( job . Job ? . TimeoutSecs ?? 20 * 60 ) ;
302
+ // Wait for the job to synchronously complete, default: 5 minutes
303
+ var timeout = DateTime . UtcNow . AddSeconds ( job . Job ? . TimeoutSecs ?? 5 * 60 ) ;
304
304
while ( queuedJob ? . Job ? . State is not ( BackgroundJobState . Completed or BackgroundJobState . Cancelled
305
305
or BackgroundJobState . Failed ) && DateTime . UtcNow < timeout )
306
306
{
Original file line number Diff line number Diff line change @@ -374,8 +374,8 @@ public static async Task<ArtifactGenerationResponse> ProcessSyncTransformAsync(t
374
374
375
375
var completedResponse = new ArtifactGenerationResponse ( ) ;
376
376
377
- // Wait for the job to complete max 20 minutes
378
- var timeout = DateTime . UtcNow . AddSeconds ( job . Job ? . TimeoutSecs ?? 20 * 60 ) ;
377
+ // Wait for the job to synchronously complete, default: 5 minutes
378
+ var timeout = DateTime . UtcNow . AddSeconds ( job . Job ? . TimeoutSecs ?? 5 * 60 ) ;
379
379
while ( queuedJob ? . Job ? . State is not (
380
380
BackgroundJobState . Completed or BackgroundJobState . Cancelled or BackgroundJobState . Failed )
381
381
&& DateTime . UtcNow < timeout )
You can’t perform that action at this time.
0 commit comments