-
Notifications
You must be signed in to change notification settings - Fork 7
Workflow versioning #21
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
Conversation
0297ee6 to
a088915
Compare
437d90e to
5bac21c
Compare
Signed-off-by: Albert Callarisa <[email protected]>
Signed-off-by: Albert Callarisa <[email protected]>
…nation Signed-off-by: Albert Callarisa <[email protected]>
Signed-off-by: Albert Callarisa <[email protected]>
3efe98a to
330ef46
Compare
Signed-off-by: Albert Callarisa <[email protected]>
Signed-off-by: Albert Callarisa <[email protected]>
protos/orchestrator_service.proto
Outdated
| optional Patches patches = 7; | ||
| bool patchMismatch = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please wrap related fields into new messages to have better logical grouping and cleaner API extentions.
Signed-off-by: Albert Callarisa <[email protected]>
Signed-off-by: Albert Callarisa <[email protected]>
|
@JoshVanL I reorganised things a bit, please have a look. I ended up reusing the |
Signed-off-by: Albert Callarisa <[email protected]>
protos/orchestrator_service.proto
Outdated
| ORCHESTRATION_STATUS_TERMINATED = 5; | ||
| ORCHESTRATION_STATUS_PENDING = 6; | ||
| ORCHESTRATION_STATUS_SUSPENDED = 7; | ||
| ORCHESTRATION_STATUS_PENDING_PATCH_MISMATCH = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Q: Based on this comment, do we really want to have different PENDING_ status every time we add a new reason for a workflow to enter a temporary pending status?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, let's have a single PENDING OrchestrationStatus, with typed enum reasons.
protos/orchestrator_service.proto
Outdated
| optional string targetAppID = 2; | ||
| } | ||
|
|
||
| message OrchestrationVersioningInformation { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Information is superfluous. Should use the noun "Version".
| message OrchestrationVersioningInformation { | |
| message OrchestrationVersion { |
protos/orchestrator_service.proto
Outdated
| ORCHESTRATION_STATUS_TERMINATED = 5; | ||
| ORCHESTRATION_STATUS_PENDING = 6; | ||
| ORCHESTRATION_STATUS_SUSPENDED = 7; | ||
| ORCHESTRATION_STATUS_PENDING_PATCH_MISMATCH = 8; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Makes sense, let's have a single PENDING OrchestrationStatus, with typed enum reasons.
protos/orchestrator_service.proto
Outdated
|
|
||
| message OrchestratorStartedEvent { | ||
| // No payload data | ||
| optional OrchestrationVersioningInformation versioningInformation = 1; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| optional OrchestrationVersioningInformation versioningInformation = 1; | |
| optional OrchestrationVersion version = 1; |
protos/orchestrator_service.proto
Outdated
| EntityLockRequestedEvent entityLockRequested = 27; | ||
| EntityLockGrantedEvent entityLockGranted = 28; | ||
| EntityUnlockSentEvent entityUnlockSent = 29; | ||
| ExecutionPendingVersionEvent executionPendingVersion = 31; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| ExecutionPendingVersionEvent executionPendingVersion = 31; | |
| ExecutionPending executionPending = 31; |
protos/orchestrator_service.proto
Outdated
| google.protobuf.StringValue input = 1; | ||
| } | ||
|
|
||
| message ExecutionPendingVersionEvent { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| message ExecutionPendingVersionEvent { | |
| message ExecutionPending { | |
| PendingReason reason = 1; | |
| // Ideally we would have more stringy information here which would tell the user what went wrong, which will be surfaced in `dapr workfow history` etc. | |
| } | |
Signed-off-by: Albert Callarisa <[email protected]>
Adds changes to introduce workflow versioning as described in dapr/proposals#94