Skip to content

Commit 417fd98

Browse files
committed
Update Configure.BackgroundJobs.cs
1 parent f52c3ca commit 417fd98

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

MyApp/Configure.BackgroundJobs.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ public void Configure(IWebHostBuilder builder) => builder
3232
// },
3333
// });
3434
services.AddPlugin(new DatabaseJobFeature {
35-
NamedConnection = "jobs"
35+
NamedConnection = "jobs",
36+
DefaultTimeoutSecs = 60 * 60, // 1 hour
3637
});
3738
services.AddHostedService<JobsHostedService>();
3839
}).ConfigureAppHost(afterAppHostInit: appHost => {

0 commit comments

Comments
 (0)