Skip to content
Merged
Show file tree
Hide file tree
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
185 changes: 159 additions & 26 deletions workflows/go/sources/workflow_metadata_source.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 18 additions & 2 deletions workflows/sources/v1/workflow_metadata_source.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@
// WorkflowMetadata represents metadata for a single workflow.
message WorkflowMetadata {
bytes workflow_id = 1;
bytes owner = 2;
string owner = 2;

Check failure on line 39 in workflows/sources/v1/workflow_metadata_source.proto

View workflow job for this annotation

GitHub Actions / buf

Field "2" with name "owner" on message "WorkflowMetadata" changed type from "bytes" to "string".
// created_at is the Unix timestamp when the workflow was created.
uint64 created_at = 3;
// status indicates the workflow status (0=active, 1=paused).
uint32 status = 4;
WorkflowStatus status = 4;

Check failure on line 43 in workflows/sources/v1/workflow_metadata_source.proto

View workflow job for this annotation

GitHub Actions / buf

Field "4" with name "status" on message "WorkflowMetadata" changed type from "uint32" to "enum".
// workflow_name is the human-readable name of the workflow.
string workflow_name = 5;
// binary_url is the URL to fetch the workflow binary.
Expand All @@ -53,4 +53,20 @@
bytes attributes = 9;
// don_family is the DON family this workflow belongs to.
string don_family = 10;
// managed_by is the origin of this workflow (CLI, CREC, etc.)
WorkflowManagedBy managed_by = 11;
string organization_id = 12;
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can we change the order to match here?

}

enum WorkflowStatus {
WORKFLOW_STATUS_UNSPECIFIED = 0; // Unspecified workflow status
WORKFLOW_STATUS_ACTIVE = 1;
WORKFLOW_STATUS_PAUSED = 2;
}

// Identifies which system created/updated the workflow metadata.
enum WorkflowManagedBy {
WORKFLOW_MANAGED_BY_UNSPECIFIED = 0;
WORKFLOW_MANAGED_BY_CLI = 1;
WORKFLOW_MANAGED_BY_CREC = 2;
}
Loading