0
chris.tune created
Hi All
I'm trying to achieve a few of things with background jobs:
- Track running jobs for the user - for example an import so the user can see that it's still running, and progress(currently have a progress using signalR but would like a table).
- Dont allow multiple jobs to run at the same time, for example, running a job which causes side effects more than once.
- I understand there is a dont retry as well am I right in thinking this goes on the Execute method?
I dont want to have to build this out as it feels like I should be able to do this through the background job store etc.
Some design / code samples would be useful if possible :)
Thanks Chris
1 Answer(s)
-
0
Hi,
- You can use Hangfire Dashboard for this. To enable Hangfire Dashboard, see https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Infrastructure-Core-Mvc-Background-Jobs
- You can take a look at https://stackoverflow.com/a/38518567
- See Delayed Jobs on https://www.hangfire.io/
I assume you are going to use Hangfire for all cases :)