Skip to content

Commit 9480c34

Browse files
committed
bump jobs default timeout to 20mins
Signed-off-by: Demis Bellot <demis.bellot@gmail.com>
1 parent ea01a29 commit 9480c34

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

AiServer/Configure.BackgroundJobs.cs

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,11 @@ public void Configure(IWebHostBuilder builder) => builder
2020
() => [typeof(LogCommand)]
2121
}
2222
});
23-
services.AddPlugin(new BackgroundsJobFeature { EnableAdmin = true });
23+
services.AddPlugin(new BackgroundsJobFeature
24+
{
25+
EnableAdmin = true,
26+
DefaultTimeoutSecs = 20 * 60, // 20 mins
27+
});
2428
services.AddHostedService<JobsHostedService>();
2529
}).ConfigureAppHost(afterAppHostInit: appHost => {
2630
var services = appHost.GetApplicationServices();

0 commit comments

Comments
 (0)