Skip to content

Commit 3b9c600

Browse files
aligning workflow source proto with storage service (#285)
* aligning workflow source proto with storage service * bot: regenerate protobuf files --------- Co-authored-by: app-token-issuer-engops[bot] <144731339+app-token-issuer-engops[bot]@users.noreply.github.com>
1 parent db2a2aa commit 3b9c600

2 files changed

Lines changed: 177 additions & 28 deletions

File tree

workflows/go/sources/workflow_metadata_source.pb.go

Lines changed: 159 additions & 26 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

workflows/sources/v1/workflow_metadata_source.proto

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,11 +36,11 @@ message ListWorkflowMetadataResponse {
3636
// WorkflowMetadata represents metadata for a single workflow.
3737
message WorkflowMetadata {
3838
bytes workflow_id = 1;
39-
bytes owner = 2;
39+
string owner = 2;
4040
// created_at is the Unix timestamp when the workflow was created.
4141
uint64 created_at = 3;
4242
// status indicates the workflow status (0=active, 1=paused).
43-
uint32 status = 4;
43+
WorkflowStatus status = 4;
4444
// workflow_name is the human-readable name of the workflow.
4545
string workflow_name = 5;
4646
// binary_url is the URL to fetch the workflow binary.
@@ -53,4 +53,20 @@ message WorkflowMetadata {
5353
bytes attributes = 9;
5454
// don_family is the DON family this workflow belongs to.
5555
string don_family = 10;
56+
// managed_by is the origin of this workflow (CLI, CREC, etc.)
57+
WorkflowManagedBy managed_by = 11;
58+
string organization_id = 12;
59+
}
60+
61+
enum WorkflowStatus {
62+
WORKFLOW_STATUS_UNSPECIFIED = 0; // Unspecified workflow status
63+
WORKFLOW_STATUS_ACTIVE = 1;
64+
WORKFLOW_STATUS_PAUSED = 2;
65+
}
66+
67+
// Identifies which system created/updated the workflow metadata.
68+
enum WorkflowManagedBy {
69+
WORKFLOW_MANAGED_BY_UNSPECIFIED = 0;
70+
WORKFLOW_MANAGED_BY_CLI = 1;
71+
WORKFLOW_MANAGED_BY_CREC = 2;
5672
}

0 commit comments

Comments
 (0)