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
9 changes: 9 additions & 0 deletions proto/agynio/api/runners/v1/runners.proto
Original file line number Diff line number Diff line change
Expand Up @@ -162,12 +162,20 @@ message EnrollRunnerResponse {
enum WorkloadStatus {
WORKLOAD_STATUS_UNSPECIFIED = 0;
WORKLOAD_STATUS_STARTING = 1;
// Container is up and healthy. This does not imply the agent is actively
// processing; see Workload.agent_state.
WORKLOAD_STATUS_RUNNING = 2;
WORKLOAD_STATUS_STOPPING = 3;
WORKLOAD_STATUS_STOPPED = 4;
WORKLOAD_STATUS_FAILED = 5;
}

enum WorkloadAgentState {
WORKLOAD_AGENT_STATE_UNSPECIFIED = 0;
WORKLOAD_AGENT_STATE_PROCESSING = 1;
WORKLOAD_AGENT_STATE_IDLE = 2;
}

enum WorkloadFailureReason {
WORKLOAD_FAILURE_REASON_UNSPECIFIED = 0;
WORKLOAD_FAILURE_REASON_START_FAILED = 1;
Expand Down Expand Up @@ -233,6 +241,7 @@ message Workload {
string agent_name = 17;
// Denormalized display name for runner_id.
string runner_name = 18;
WorkloadAgentState agent_state = 19;
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[nit] Please add a short field-level comment for clarifying the intended semantics (agent processing state vs container lifecycle), similar to the note you added on .

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

[nit] Please add a short field-level comment for agent_state clarifying the intended semantics (agent processing state vs container lifecycle), similar to the note you added on WORKLOAD_STATUS_RUNNING.

}

message CreateWorkloadRequest {
Expand Down
Loading