Base solution for your next web application
Open Closed

Trouble changing the default timeout for the Background Job Manager #7112


User avatar
0
tom.ohle created

Per the documentation (https://github.com/abpframework/abp/blob/master/docs/en/Background-Jobs.md#configuration) I should be able to change the default timeout by overriding the ConfigureServices method but the AbpBackgroundJobsModule cannot be resolved.

Is there another way to go about this? Can the timeout be changed for individual background jobs?

The documentation also references the Volo.Abp.BackgroundJobs nuget package but none of the projects within the ASP.NET Zero generated project reference the nuget package.


1 Answer(s)
  • User Avatar
    0
    aaron created
    Support Team

    Simply set the static property:

    BackgroundJobInfo.DefaultTimeout = 864000; // 10 days (as seconds)
    

    The documentation for ASP<span></span>.NET Boilerplate, which ASP<span></span>.NET Zero is built on: https://aspnetboilerplate.com/Pages/Documents/Background-Jobs-And-Workers