Пример #1
0
        private void RemoveTaskFromSchedule(TaskSchedule taskSchedule)
        {
//            var jsonTaskSchedule = JsonTaskInfoSerializer.Serialize(taskSchedule);
//            _taskQueue.Backend.RemoveFromList(ScheduleBackupKey, jsonTaskSchedule);

            _scheduledTasks.Remove(taskSchedule.TaskKey);
        }
Пример #2
0
        private void AddTaskToSchedule(TaskSchedule taskSchedule)
        {
            _scheduledTasks[taskSchedule.TaskKey] = taskSchedule;
            taskSchedule.ClearLastRunTime();

//            var jsonTaskSchedule = JsonTaskInfoSerializer.Serialize(taskSchedule);
//            _taskQueue.Backend.AddToList(ScheduleBackupKey, jsonTaskSchedule);
        }
Пример #3
0
 internal void AddScheduledTask(TaskInfo taskInfo, TimeSpan interval, string taskName)
 {
     _scheduledTasks[taskName] = new TaskSchedule(taskInfo, interval, _taskQueue.Backend);
 }
Пример #4
0
 internal void AddScheduledTask(TaskInfo taskInfo, TimeSpan interval, string taskName)
 {
     // TODO: Support Scheduled Tasks with args
     _scheduledTasks[taskName] = new TaskSchedule(taskInfo, interval, _taskQueue.Backend);
 }