Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 22 additions & 1 deletion src/bitdrift_public/protobuf/workflow/v1/workflow.proto
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,21 @@ message Workflow {
// This can be looked up by ID by further transitions.
message SaveField {
string id = 1;
string field_name = 2;

oneof save_field_type {
// Saves the value of a specified field from the log. If the field is not present, nothing
// is saved.
string field_name = 2;

// Saves the message of the log.
bool message = 3;
}

// If provided, this must specify a regex with a single capture group. The value of the
// captured group will be saved instead of the whole field value. If not provided, the whole
// field value will be saved. If the regex doesn't match the field value, nothing will be
// saved.
optional string regex_capture = 4;
}

// The configuration of a value extraction for a Sankey diagram.
Expand Down Expand Up @@ -416,8 +430,15 @@ message Workflow {
// state can be started only if there are no other active runs of a given workflow.
message ExecutionExclusive {}

message ExecutionParallel {
// The maximum number of active workflow runs for this workflow. If not specified uses an
// implementation defined default value.
optional uint32 max_active_runs = 1;
}

oneof execution_type {
ExecutionExclusive execution_exclusive = 1;
ExecutionParallel execution_parallel = 3;
}

reserved 2;
Expand Down
Loading