Skip to content

Commit

Permalink
bump jobs default timeout to 20mins
Browse files Browse the repository at this point in the history
Signed-off-by: Demis Bellot <[email protected]>
  • Loading branch information
mythz committed Jan 9, 2025
1 parent ea01a29 commit 9480c34
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion AiServer/Configure.BackgroundJobs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,11 @@ public void Configure(IWebHostBuilder builder) => builder
() => [typeof(LogCommand)]
}
});
services.AddPlugin(new BackgroundsJobFeature { EnableAdmin = true });
services.AddPlugin(new BackgroundsJobFeature
{
EnableAdmin = true,
DefaultTimeoutSecs = 20 * 60, // 20 mins
});
services.AddHostedService<JobsHostedService>();
}).ConfigureAppHost(afterAppHostInit: appHost => {
var services = appHost.GetApplicationServices();
Expand Down

0 comments on commit 9480c34

Please sign in to comment.