Skip to content

Commit 7456a50

Browse files
committed
Add Nexus service definition for worker commands
Adds a nexusrpc.yaml file defining the temporal.api.worker.v1.WorkerService for server-to-worker communication via Nexus. Uses $goRef to reference proto-generated types.
1 parent 6b58486 commit 7456a50

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# yaml-language-server: $schema=https://raw.githubusercontent.com/nexus-rpc/nexus-rpc-gen/main/schemas/nexus-rpc-gen.json
2+
#
3+
# Nexus service definition for server-to-worker communication.
4+
# See worker_nexus_service_commands.proto for protocol details and conventions.
5+
#
6+
# Task queue format: /temporal-sys/worker-commands/{namespace}/{worker_grouping_key}
7+
8+
nexusrpc: 1.0.0
9+
10+
services:
11+
temporal.api.worker.v1.WorkerService:
12+
description: >
13+
Internal Nexus service for server-to-worker communication.
14+
Used by the Temporal server to send commands to workers.
15+
operations:
16+
cancel-activities:
17+
description: >
18+
Cancels running activities on a worker. The server sends this when
19+
activities need to be cancelled (e.g., workflow cancellation or
20+
explicit activity cancellation).
21+
input:
22+
$goRef: "go.temporal.io/api/worker/v1.CancelActivitiesRequest"
23+
output:
24+
$goRef: "go.temporal.io/api/worker/v1.CancelActivitiesResponse"
25+

0 commit comments

Comments
 (0)