Skip to content

Commit fb018d2

Browse files
committed
Add lease duration to worker heartbeat request
1 parent bb50066 commit fb018d2

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

temporal/api/workflowservice/v1/request_response.proto

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2467,6 +2467,11 @@ message RecordWorkerHeartbeatRequest {
24672467
string identity = 2;
24682468

24692469
repeated temporal.api.worker.v1.WorkerHeartbeat worker_heartbeat = 3;
2470+
2471+
// Duration for which the worker lease should be valid.
2472+
// Server will calculate the actual expiration time based on when it receives this request.
2473+
// If not specified or zero, the server will use a default lease duration (typically 60 seconds).
2474+
google.protobuf.Duration lease_duration = 4;
24702475
}
24712476

24722477
message RecordWorkerHeartbeatResponse {

0 commit comments

Comments
 (0)