I am having the following use case.
We already have a cron job deployed on a Linux server which runs continuously.
Now we need to trigger this job on-demand/ some button click event/ through API.
For example, we have a screen to get the export data request from the user and once user placed this request, we need to trigger the cron job which will export file and send it to the user by email. Exporting the file is a long-running process that's why we have created a job.
I have one solution that is to use QuartzNet but I do not want to modify or change the job implementation. Is there any way that we can trigger this cron job from C# code?
Any help will be appreciated.