scheduled tasks tidy up
This commit is contained in:
1 parent
27c21175d7
commit
86faf02cf0
12 files changed
+53
-79
No files matched your search
@@ -1,11 +1,6 @@
|
||||
using Disco.Data.Repository;
|
||||
using Disco.Services.Tasks;
|
||||
using Quartz;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
|
||||
namespace Disco.Services.Jobs.JobQueues
|
||||
{
|
||||
@@ -19,11 +14,11 @@ namespace Disco.Services.Jobs.JobQueues
|
||||
|
||||
protected override void ExecuteTask()
|
||||
{
|
||||
int jobQueueId = (int)this.ExecutionContext.JobDetail.JobDataMap["JobQueueId"];
|
||||
int jobQueueId = (int)ExecutionContext.JobDetail.JobDataMap["JobQueueId"];
|
||||
|
||||
using (DiscoDataContext Database = new DiscoDataContext())
|
||||
{
|
||||
JobQueueService.DeleteJobQueue(Database, jobQueueId, this.Status);
|
||||
JobQueueService.DeleteJobQueue(Database, jobQueueId, Status);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user