We want to send a monthly report to end users from our application (microservice) and want to use background Jobs. Please can you share how to set a CRON or schedule without using Hangfire or any other library.
Also suggest if there are other ways for this use-case. Thanks
https://docs.abp.io/en/abp/latest/Background-Jobs
- ABP Framework version: v7.2.2
- UI Type: Angularr
- Database System: EF Core (PostgreSQL)
- Tiered (for MVC) or Auth Server Separated (for Angular): yes/no
- Exception message and full stack trace:
3 Answer(s)
-
0
hi
The background job manager doesn't support
CRONby default. It's just a simple job manager. for advanced features, you have to use a third-party library.https://docs.abp.io/en/abp/latest/Background-Jobs#default-background-job-manager
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
Hi @maliming
Thank you for your response.
in this case how can I schedule Background job to run on monthly basis on a specific time such as EOD (I am bound to not use hangfire or any other lib as of now). Please can you come up with an example?
Thanks!
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post) -
0
hi
how can I schedule Background job to run on monthly basis on a specific time such as EOD
You should use Background-Workers in your case.
https://docs.abp.io/en/abp/latest/Background-Workers#asyncperiodicbackgroundworkerbase
Markdown supported.Copy, paste, or drag & drop images and files (max 100 MB per file, 100 MB total per post)