Skip to content

Add idempotency tests for repeated ShutdownWorker/CancelOutstandingWorkerPolls calls#9818

Open
rkannan82 wants to merge 1 commit intomainfrom
kannan/shutdown-idempotency-tests
Open

Add idempotency tests for repeated ShutdownWorker/CancelOutstandingWorkerPolls calls#9818
rkannan82 wants to merge 1 commit intomainfrom
kannan/shutdown-idempotency-tests

Conversation

@rkannan82
Copy link
Copy Markdown
Contributor

@rkannan82 rkannan82 commented Apr 3, 2026

What changed?

Add idempotency tests for CancelOutstandingWorkerPolls and ShutdownWorker — unit test and functional test confirming repeated calls are safe and the shutdown cache remains effective.

Why?

The SDK may call ShutdownWorker multiple times. We should have explicit coverage for this.

How did you test it?

  • added new unit test(s)
  • added new functional test(s)

Potential risks

None — test-only changes.

Verify that CancelOutstandingWorkerPolls and ShutdownWorker can be
called multiple times safely: cancel functions are only invoked once,
the shutdown cache persists, and subsequent polls are still rejected.

Made-with: Cursor
@rkannan82 rkannan82 requested review from a team as code owners April 3, 2026 20:45
@rkannan82 rkannan82 requested review from ShahabT and carlydf and removed request for carlydf April 3, 2026 20:55
@rkannan82 rkannan82 enabled auto-merge (squash) April 3, 2026 20:57
@rkannan82 rkannan82 requested review from dnr and removed request for ShahabT April 12, 2026 21:55
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