Class RunStatusNames
- Namespace
- FlowOrchestrator.Core.Storage
- Assembly
- FlowOrchestrator.Core.dll
The run statuses the engine persists on Status, and a helper that maps a caller-supplied status filter onto that exact spelling.
public static class RunStatusNames
- Inheritance
-
RunStatusNames
- Inherited Members
Remarks
Run-list filters arrive from the dashboard query string or user code in any casing. The in-memory
store compares with OrdinalIgnoreCase and SQL Server's default collation
is case-insensitive, but PostgreSQL compares status byte for byte. Canonicalising the parameter
(rather than wrapping the column in lower()) keeps the filter an equality on the bare column,
so ix_flow_runs_status and ix_flow_runs_flow_id_status_started_at stay usable.
Fields
Cancelled
A run a user cancelled.
public const string Cancelled = "Cancelled"
Field Value
Failed
A run with an unhandled failed step.
public const string Failed = "Failed"
Field Value
Running
A run with at least one step not yet terminal.
public const string Running = "Running"
Field Value
Skipped
A run whose every leaf step was skipped.
public const string Skipped = "Skipped"
Field Value
Succeeded
A run whose terminal classification is success.
public const string Succeeded = "Succeeded"
Field Value
TimedOut
A run that exceeded its timeout deadline.
public const string TimedOut = "TimedOut"
Field Value
Methods
Canonicalize(string)
Returns the persisted spelling of status when it names a known run status in any
casing; otherwise returns status unchanged (a custom store may persist its own).
public static string Canonicalize(string status)
Parameters
statusstringThe requested status filter.
Returns
- string
The canonical status string, or
statusitself.
Remarks
Allocation-free: returns one of the constants or the input instance.