I’ve written a Windows Service using Hangfire which sends out various reports at scheduled times. However, from time to time users have manually requested for a report to be run outside of the scheduled time.
I was wondering if these can be triggered on demand outside of the Hangfire process without using the dashboard?
So, let’s assume I’ve got this job:
RecurringJob.AddOrUpdate(nameof(Tasks.HelloWorld), () => tasks.HelloWorld(null, CancellationToken.None), Cron.Daily(07, 30), TimeZoneInfo.Local);
Would it be possible to trigger a job from the MVC website? Thanks.