Skip to content

Conversation

ychebotarev
Copy link
Contributor

@ychebotarev ychebotarev commented Jun 5, 2025

What changed?

Add stubs for new API:

  • RecordWorkerHeartbeat
  • ListWorkers

Also add feature flags

Why?

Adding new API is a breaking change, we need stubs.

Corresponding API PR:
#7870

How did you test it?

  • built
  • run locally and tested manually
  • covered by existing tests
  • added new unit test(s)
  • added new functional test(s)

ychebotarev added a commit to temporalio/api that referenced this pull request Jun 5, 2025
<!-- Describe what has changed in this PR -->
**What changed?**
What changed?
* 2 new APIs added:
   * WorkerHeartbeat
   * ListWorkerStatus
* WorkerInfo information added to:
   * ShutDownWorker request
   * Poll(Activity|Nexus|Workflow)TaskQueue requests
   
This is "for merge".
Here is a previous PR, where we discuss this at length:
#599

<!-- Tell your future self why have you made these changes -->
**Why?**
Part of the worker visibility work. Workers should be able to report
their status.
Users should be able to get information about workers.

<!-- Are there any breaking changes on binary or code level? -->
**Breaking changes**
Yes - new API is introduce.

<!-- If this breaks the Server, please provide the Server PR to merge
right after this PR was merged. -->
**Server PR**
[Server PR](temporalio/temporal#7870)
temporal-cicd bot pushed a commit to temporalio/api-go that referenced this pull request Jun 5, 2025
<!-- Describe what has changed in this PR -->
**What changed?**
What changed?
* 2 new APIs added:
   * WorkerHeartbeat
   * ListWorkerStatus
* WorkerInfo information added to:
   * ShutDownWorker request
   * Poll(Activity|Nexus|Workflow)TaskQueue requests

This is "for merge".
Here is a previous PR, where we discuss this at length:
temporalio/api#599

<!-- Tell your future self why have you made these changes -->
**Why?**
Part of the worker visibility work. Workers should be able to report
their status.
Users should be able to get information about workers.

<!-- Are there any breaking changes on binary or code level? -->
**Breaking changes**
Yes - new API is introduce.

<!-- If this breaks the Server, please provide the Server PR to merge
right after this PR was merged. -->
**Server PR**
[Server PR](temporalio/temporal#7870)
@ychebotarev ychebotarev requested a review from dnr June 6, 2025 00:31
@ychebotarev ychebotarev merged commit 8416074 into main Jun 6, 2025
53 checks passed
@ychebotarev ychebotarev deleted the y_heartbeat branch June 6, 2025 01:22
Shivs11 pushed a commit that referenced this pull request Jun 6, 2025
Add stubs for new API:
* RecordWorkerHeartbeat
* ListWorkers

Also add feature flags

Adding new API is a breaking change, we need stubs.

Corresponding API PR:
#7870

- [x] built
- [ ] run locally and tested manually
- [ ] covered by existing tests
- [ ] added new unit test(s)
- [ ] added new functional test(s)
@@ -142,6 +142,8 @@ var (
"/temporal.api.workflowservice.v1.WorkflowService/ResetStickyTaskQueue": 5,
"/temporal.api.workflowservice.v1.WorkflowService/ShutdownWorker": 5,
"/temporal.api.workflowservice.v1.WorkflowService/GetWorkflowExecutionHistoryReverse": 5,
"/temporal.api.workflowservice.v1.WorkflowService/RecordWorkerHeartbeat": 5,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cc @prathyushpv Do we need to update OPS for this? What's the default priority for new APIs?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants