0
toptis created
- ABP Framework version: v5.3.1
- How can I create BackgroundJob To execute just once (if an exception occurred) make it abandoned "true" and don't retry the job.
- How can I remove old abandoned jobs after 1 day.
1 Answer(s)
-
0
Hi,
How can I create BackgroundJob To execute just once (if an exception occurred) make it abandoned "true" and don't retry the job.
See: https://docs.abp.io/en/abp/latest/Background-Jobs#configuration You can set the
DefaultTimeout
to 0 ofAbpBackgroundJobWorkerOptions
How can I remove old abandoned jobs after 1 day.
You can create a background worker to remove abandoned jobs. see: https://docs.abp.io/en/abp/latest/Background-Workers