diff --git a/platform/extension/messagequeue/mysql/README.md b/platform/extension/messagequeue/mysql/README.md index d48ec4c9a..afa596853 100644 --- a/platform/extension/messagequeue/mysql/README.md +++ b/platform/extension/messagequeue/mysql/README.md @@ -148,8 +148,8 @@ Cancelling a subscription stops its workers, releases leases, deregisters the he When a partition worker is stopped (lease lost or shutdown): - Immediately removed from workers map and context cancelled -- Caller waits up to 30s for exit confirmation (warning logged on timeout) -- `workerWg` tracks the goroutine regardless — `Close()` always waits for full exit +- The caller does not wait for the worker to exit: stopping only cancels the context and removes the map entry, and the worker exits on its own shortly after +- `workerWg` tracks the goroutine until it exits. On shutdown, `managePartitions` waits on it before closing the delivery channel, so no worker can send on a closed channel. `Close()` waits up to 30s per subscription for this; on timeout it returns an error and the remaining workers exit asynchronously - Reconciliation can start a replacement immediately — brief overlap is harmless with at-least-once semantics ### Logger Hierarchy