예제 #1
0
            public Exception OnException(ITask currentTask, TaskLog log, Vertica.Integration.Model.Arguments arguments, Exception exception)
            {
                string alias = arguments["Alias"];

                log.LogMessage($"Unable to start {alias} (TaskLogId: {log.Id}): {exception.Message}");

                // Return <null> to stop the task from being executed but without any exceptions thrown

                return(null);
            }
 protected void RunTask <TTask>(Arguments arguments = null) where TTask : class, ITask
 {
     RunTask(GetTask <TTask>(), arguments);
 }
 protected void RunTask(ITask task, Arguments arguments = null)
 {
     Resolve <ITaskRunner>().Execute(task, arguments ?? new Arguments());
 }
 protected void RunTask(string name, Arguments arguments = null)
 {
     RunTask(GetTask(name), arguments);
 }
예제 #5
0
 protected void RunTask(ITask task, Vertica.Integration.Model.Arguments arguments = null)
 {
     this.Resolve <ITaskRunner>().Execute(task, arguments ?? new Vertica.Integration.Model.Arguments());
 }
예제 #6
0
 protected void RunTask <TTask>(Vertica.Integration.Model.Arguments arguments = null)
     where TTask : class, ITask
 {
     this.RunTask(this.GetTask <TTask>(), arguments);
 }
예제 #7
0
 protected void RunTask(string name, Vertica.Integration.Model.Arguments arguments = null)
 {
     this.RunTask(this.GetTask(name), arguments);
 }
예제 #8
0
 public string GetLockDescription(ITask currentTask, Vertica.Integration.Model.Arguments arguments, string currentDescription)
 {
     return($"Alias = {arguments["Alias"]}");
 }