From 9480c341c962e7f098175912fc33c3587bb38940 Mon Sep 17 00:00:00 2001 From: Demis Bellot Date: Thu, 9 Jan 2025 19:13:27 +0800 Subject: [PATCH] bump jobs default timeout to 20mins Signed-off-by: Demis Bellot --- AiServer/Configure.BackgroundJobs.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/AiServer/Configure.BackgroundJobs.cs b/AiServer/Configure.BackgroundJobs.cs index 94f3766..476cefd 100644 --- a/AiServer/Configure.BackgroundJobs.cs +++ b/AiServer/Configure.BackgroundJobs.cs @@ -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(); }).ConfigureAppHost(afterAppHostInit: appHost => { var services = appHost.GetApplicationServices();