Skip to content

Deprecate ListWorkersEnabled flag; always allow ListWorkers/DescribeWorker#9544

Open
rkannan82 wants to merge 2 commits intomainfrom
kannan/list-workers-empty-response
Open

Deprecate ListWorkersEnabled flag; always allow ListWorkers/DescribeWorker#9544
rkannan82 wants to merge 2 commits intomainfrom
kannan/list-workers-empty-response

Conversation

@rkannan82
Copy link
Contributor

@rkannan82 rkannan82 commented Mar 17, 2026

What changed?

Deprecate ListWorkersEnabled dynamic config flag. ListWorkers and DescribeWorker APIs are now always enabled — they naturally return empty/NotFound when no heartbeat data exists, so the flag is unnecessary. The write path is already gated by WorkerHeartbeatsEnabled.

Follow-up to #9531.

How did you test it?

  • built
  • added new functional test(s)

Potential risks

None — the flag defaulted to true and the config key is preserved (deprecated) to avoid parse errors.

…orker

Remove the ListWorkersEnabled dynamic config flag and the flag guard
from ListWorkers and DescribeWorker APIs. These read-only APIs naturally
return empty results (ListWorkers) or NotFound (DescribeWorker) when no
heartbeat data exists, so gating them behind a separate flag is unnecessary.
The write path (RecordWorkerHeartbeat) is already gated by
WorkerHeartbeatsEnabled.

Add functional tests verifying ListWorkers returns empty and DescribeWorker
returns NotFound when no heartbeats have been recorded.

Made-with: Cursor
Preserve the dynamic config key so existing deployments that set it
don't get config parse errors. Mark it as deprecated since ListWorkers
and DescribeWorker are now always enabled.

Made-with: Cursor
@rkannan82 rkannan82 requested a review from ShahabT March 17, 2026 04:36
@rkannan82 rkannan82 marked this pull request as ready for review March 17, 2026 04:36
@rkannan82 rkannan82 requested review from a team as code owners March 17, 2026 04:36
@rkannan82 rkannan82 changed the title Remove ListWorkersEnabled dynamic config flag Deprecate ListWorkersEnabled flag; always allow ListWorkers/DescribeWorker Mar 17, 2026
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.

1 participant