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); }
protected void RunTask(ITask task, Vertica.Integration.Model.Arguments arguments = null) { this.Resolve <ITaskRunner>().Execute(task, arguments ?? new Vertica.Integration.Model.Arguments()); }
protected void RunTask <TTask>(Vertica.Integration.Model.Arguments arguments = null) where TTask : class, ITask { this.RunTask(this.GetTask <TTask>(), arguments); }
protected void RunTask(string name, Vertica.Integration.Model.Arguments arguments = null) { this.RunTask(this.GetTask(name), arguments); }
public string GetLockDescription(ITask currentTask, Vertica.Integration.Model.Arguments arguments, string currentDescription) { return($"Alias = {arguments["Alias"]}"); }