Fixes Schedulers bugs
This commit is contained in:
parent
e8ed10a67b
commit
c8a8be8894
7 changed files with 65 additions and 43 deletions
|
@ -69,7 +69,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
return task;
|
||||
}
|
||||
|
||||
public static void AddTask(BackgroundTask task)
|
||||
public static int AddTask(BackgroundTask task)
|
||||
{
|
||||
int taskId = DataProvider.AddBackgroundTask(task.Guid, task.TaskId, task.ScheduleId, task.PackageId, task.UserId,
|
||||
task.EffectiveUserId, task.TaskName, task.ItemId, task.ItemName,
|
||||
|
@ -80,6 +80,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
AddTaskParams(taskId, task.Params);
|
||||
|
||||
DataProvider.AddBackgroundTaskStack(taskId);
|
||||
return taskId;
|
||||
}
|
||||
|
||||
public static void UpdateTask(BackgroundTask task)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue