Class Run
The Run class provides a representation of a routine run with the Routine system. This allows for programmatic execution control and monitoring of runs, including starting, cancelling, and retrieving artifacts.
Namespace: Workspace.XBR.Xperiflow.Routines.Runs
Assembly: Xperiflow.dll
public class Run
Remarks
Many of the methods of this object accept an 'executionType' which denotes the way in which to execution the Routine Method Run. The supported options are: "background" and "in-memory".
"background" will execute the Run as a background job which means the Run will execute in a separate python process. This method should be used in the case where it is expected that the Run will take more than 5 seconds to run or consumes a lot of compute and memory.
"in-memory" will execute the Run at the web service tier of the xperiflow engine. This can be used to provide fast response to the user. This method should be used in the case where the Run is expected to run in under 60 seconds and does not consume significant compute and memory resources. Note that there are protection mechanisms at the web service tier that will immediately kill the Run if it takes more than a certain amount of time or memory to run. Additionally, it can run as "in-memory" if it is that particular Routine Method is enabled to do so. Lastly, the "in-memory" method won't leave this StartAsync until it finishes running.
Properties
InstanceIdentifier
The Routine Instance Identifier that this run belongs to. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.InstanceIdentifier for more information.
public string InstanceIdentifier { get; }
RunIdentifier
The unique identifier for the run. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.RunIdentifier for more information.
public string RunIdentifier { get; }
ExecutionIdentifier
The unique identifier for the execution. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.ExecutionIdentifier for more information.
public string ExecutionIdentifier { get; }
ExecutionType
The type of execution. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.ExecutionType for more information.
public string ExecutionType { get; }
MethodName
The method name that was invoked for this run. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.MethodName for more information.
public string MethodName { get; }
CallableType
The callable type. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.RoutineCallableType for more information.
public RoutineCallableType CallableType { get; }
RunName
The user-defined name of the run. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.RunName for more information.
public string RunName { get; }
RunDescription
The user-defined description of the run. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.RunDescription for more information.
public string RunDescription { get; }
CreationTime
The UTC time the run was created. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.CreationTime for more information.
public DateTime CreationTime { get; }
ModifiedTime
The UTC time the run was last modified. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.ModifiedTime for more information.
public DateTime ModifiedTime { get; }
CreatedByUserId
The unique identifier of the user that created the run. See Workspace.XBR.Xperiflow.Routines.Runs.RunMetadata.CreatedByUserId for more information.
public string CreatedByUserId { get; }