Skip to content

Commit 05384b5

Browse files
authored
Add ExportedExecutions type for export (#874)
<!-- Describe what has changed in this PR --> **What changed?** Add an exported executions type for export which is wire compatible with previous WorkflowExecutions but also includes newer executions we want to export <!-- Tell your future self why have you made these changes --> **Why?** <!-- Are there any breaking changes on binary or code level? --> **Breaking changes** <!-- If this breaks the Server, please provide the Server PR to merge right after this PR was merged. --> **Server PR**
1 parent 1c27468 commit 05384b5

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

‎temporal/api/export/v1/message.proto‎

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,26 @@ option ruby_package = "Temporalio::Api::Export::V1";
1010
option csharp_namespace = "Temporalio.Api.Export.V1";
1111

1212
import "temporal/api/history/v1/message.proto";
13+
import "temporal/api/workflowservice/v1/request_response.proto";
1314

1415
message WorkflowExecution {
1516
temporal.api.history.v1.History history = 1;
1617
}
1718

18-
// WorkflowExecutions is used by the Cloud Export feature to deserialize
19-
// the exported file. It encapsulates a collection of workflow execution information.
19+
// WorkflowExecutions is the legacy Cloud Export file format containing only workflow executions.
20+
// New exporters should use ExportedExecutions.
2021
message WorkflowExecutions {
2122
repeated WorkflowExecution items = 1;
2223
}
2324

25+
message ActivityExecution {
26+
temporal.api.workflowservice.v1.DescribeActivityExecutionResponse activity = 1;
27+
}
28+
29+
// ExportedExecutions is used by the Cloud Export feature to deserialize the exported file.
30+
// It encapsulates workflow execution information and contains other execution types.
31+
message ExportedExecutions {
32+
repeated WorkflowExecution workflows = 1;
33+
repeated ActivityExecution activities = 2;
34+
}
35+

0 commit comments

Comments
 (0)