Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

runtime_state.proto #3

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
41 changes: 41 additions & 0 deletions protos/runtime_state.proto
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.

syntax = "proto3";

package durabletask.protos.backend.v1;

option csharp_namespace = "Microsoft.DurableTask.Protobuf";
option java_package = "com.microsoft.durabletask.implementation.protobuf";
option go_package = "/api/protos";

import "orchestrator_service.proto";

import "google/protobuf/timestamp.proto";
import "google/protobuf/wrappers.proto";

// OrchestrationRuntimeState holds the current state for an orchestration.
message OrchestrationRuntimeState {
string instanceId = 1;
repeated HistoryEvent newEvents = 2;
repeated HistoryEvent oldEvents = 3;
repeated HistoryEvent pendingTasks = 4;
repeated HistoryEvent pendingTimers = 5;
repeated OrchestrationRuntimeStateMessage pendingMessages = 6;

ExecutionStartedEvent startEvent = 7;
ExecutionCompletedEvent completedEvent = 8;
google.protobuf.Timestamp createdTime = 9;
google.protobuf.Timestamp lastUpdatedTime = 10;
google.protobuf.Timestamp completedTime = 11;
bool continuedAsNew = 12;
bool isSuspended = 13;

google.protobuf.StringValue customStatus = 14;
}

// OrchestrationRuntimeStateMessage holds an OrchestratorMessage and the target instance ID.
message OrchestrationRuntimeStateMessage {
HistoryEvent historyEvent = 1;
string TargetInstanceID = 2;
}