How to suspend or restart a task after it starts
For killing a job you can do something like
BackgroundJob.Delete(cancellationToken);
For restart, you can write a logic in your code to create new job or you can manually re-run it from Hangfire dashboard.
Most helpful comment
For killing a job you can do something like
BackgroundJob.Delete(cancellationToken);For restart, you can write a logic in your code to create new job or you can manually re-run it from Hangfire dashboard.