Dynamically Creating Scheduled Tasks In An ASP.NET Website
<p>I am in need of some advice on the best approach to dynamically creating some form of scheduled task at web application level. The scheduled task will be pulling information from an external API endpoint to store within a database at regular intervals until a specific end time.</p>

<p>Normally, I would create a Windows Service that will carry out this job for me. Unfortunately, the site administrator could create multiple tasks to query different criteria from the external API. So there could be multiple tasks running.</p>

<p>I have been working on implementing a background worker thread that runs on a timer. Would this be the best approach? Or would using something like <a href="http://hangfire.io/" rel="nofollow">Hangfire</a> or <a href="http://www.quartz-scheduler.net/" rel="nofollow">Quartz.net</a> be a better solution to ensure my background process is constantly running?</p>

<p>I don't know if it's feasible inside a web application to be ensure a task can constantly be run when required for a specific duration of time.</p>