-
Notifications
You must be signed in to change notification settings - Fork 87
Add Nexus request and response payloads to cancel activities #708
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
base: kannan/add-worker-instance-key-to-wft-complete
Are you sure you want to change the base?
Changes from all commits
22ab5e7
e9d56b9
1643b18
c5a0a89
6f53c22
6c21af4
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,26 @@ | ||
| syntax = "proto3"; | ||
|
|
||
| package temporal.api.worker.v1; | ||
|
|
||
| option go_package = "go.temporal.io/api/worker/v1;worker"; | ||
| option java_package = "io.temporal.api.worker.v1"; | ||
| option java_multiple_files = true; | ||
| option java_outer_classname = "WorkerNexusServiceCommandsProto"; | ||
| option ruby_package = "Temporalio::Api::Worker::V1"; | ||
| option csharp_namespace = "Temporalio.Api.Worker.V1"; | ||
|
|
||
| // (-- | ||
| // Internal Nexus service for server-to-worker communication. | ||
| // See worker_service.nexusrpc.yaml for the service definition. | ||
| // --) | ||
|
|
||
| // Request payload for the "cancel-activities" Nexus operation. | ||
| message CancelActivitiesRequest { | ||
| // Task tokens identifying the activities to cancel. | ||
| repeated bytes task_tokens = 1; | ||
| } | ||
|
|
||
| // Response payload for the "cancel-activities" Nexus operation. | ||
| message CancelActivitiesResponse { | ||
| } | ||
|
|
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wonder if Nexus services should be in a separate place. We don't have a best practice since this is the first one, but maybe a |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # yaml-language-server: $schema=https://raw.githubusercontent.com/nexus-rpc/nexus-rpc-gen/main/schemas/nexus-rpc-gen.json | ||
| # | ||
| # Nexus service definition for server-to-worker communication. | ||
| # See worker_nexus_service_commands.proto for protocol details and conventions. | ||
| # | ||
| # Task queue format: /temporal-sys/worker-commands/{namespace}/{worker_grouping_key} | ||
|
|
||
| nexusrpc: 1.0.0 | ||
|
|
||
| services: | ||
| temporal.api.worker.v1.WorkerService: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not sure we have to follow our gRPC naming here. We don't have a best practice since this is the first one, but I think just |
||
| description: > | ||
| Internal Nexus service for server-to-worker communication. | ||
| Used by the Temporal server to send commands to workers. | ||
| operations: | ||
| cancel-activities: | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We don't have a best practice since this is the first one, but I think camelCase is reasonable, e.g. |
||
| description: > | ||
| Cancels running activities on a worker. The server sends this when | ||
| activities need to be cancelled (e.g., workflow cancellation or | ||
| explicit activity cancellation). | ||
| input: | ||
| $goRef: "go.temporal.io/api/worker/v1.CancelActivitiesRequest" | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think we should consider using JSON schema here and no protos (but if we must use protos, we should reference all languages) |
||
| output: | ||
| $goRef: "go.temporal.io/api/worker/v1.CancelActivitiesResponse" | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.