title: Quartz .NET Run multiple Tasks
body: <p>I used Quartz .NET in my ASP .NET MVC 4 Webapplication to be able to start longrunning Tasks. The Long Running Task should start within a Controller Method after a POST, not with Application_Start. My Code works great, but only if no other Task is running, otherwise the running task stops. How can i run multiple Tasks at the same time and with the same IJob implemented Class? Is Quartz .NET the right Framework for that Use Case?</p>
  
  <pre><code>public async Task&lt;ActionResult&gt; Processfile(HttpPostedFileBase file) {
     var groupName = "Group";
     var jobId = "processJob" + Guid.NewGuid();
  
     // defines the job
     IJobDetail job = JobBuilder.Create&lt;ProcessJob&gt;()
      .WithIdentity(jobId, groupName)
      .UsingJobData(parameters)
      .Build();
  
     // defines the trigger
     ITrigger trigger = TriggerBuilder.Create()
       .WithIdentity("processTrigger" + Guid.NewGuid(), groupName)
       .WithPriority(1)
       .StartNow()
       .Build();
  
    // Tell quartz to schedule the job using our trigger
    await scheduler.ScheduleJob(job, trigger);
    await scheduler.Start();
  return new HttpStatusCodeResult(HttpStatusCode.OK, "OK");
  </code></pre>
  
  <p>}</p>