3

I am using background job for some definition operations. Some of the definitions can completed in 2 minutes, some in 10 minutes.

I don't want it to retry on fail. The job shouldn't retry when it success or failed.Is it possible ?

Thanks.

moonlight
  • 33
  • 2

2 Answers2

2

I found the same question asked in the https://forum.aspnetboilerplate.com.

  • Write your code in try-catch and hide exceptions. Background job manager only retries on exceptions.

https://forum.aspnetboilerplate.com/viewtopic.php?p=8839&sid=4a5bed7481fd06bb89d8e98eb3c5cb12#p8839

Engincan Veske
  • 1,300
  • 1
  • 10
  • 16
0

https://docs.abp.io/en/abp/latest/Background-Jobs#configuration

You can change the DefaultTimeout value to 0

References:

  1. https://github.com/abpframework/abp/issues/8158
berkansasmaz
  • 608
  • 5
  • 16