diff --git a/docs/polyglot/cli-reference.md b/docs/polyglot/cli-reference.md index c241c97ae45..030068e4f62 100644 --- a/docs/polyglot/cli-reference.md +++ b/docs/polyglot/cli-reference.md @@ -423,6 +423,8 @@ Tokens belong to the namespace and filter selection. Start again without a token | `dw task-queue:build-ids ` | Inspect per-build-id cohort state and rollout status for one queue. | `--json` | | `dw task-queue:drain ` | Mark a build-id cohort as draining so it stops claiming new tasks. | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | Clear a previous drain so the cohort can claim new tasks again. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | Show what still blocks retiring one build cohort or the whole queue, with counts, samples and recovery steps. Read-only. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | Retire one build cohort or the whole queue only when nothing depends on it; a refusal changes nothing. | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | Hold new activity dispatch on one task queue until it is resumed. | `--reason `, `--json` | | `dw task-queue:resume-activities ` | Resume activity dispatch on a paused task queue. | `--json` | | `dw task-queue:activity-dispatch ` | Show whether activity dispatch is paused, and who paused or resumed it, when and why. | `--json` | @@ -441,6 +443,25 @@ two fails fast with an invalid-option error. Both commands are idempotent: repeated drains do not shift the recorded `drained_at` timestamp, and resuming an already-active cohort is a no-op. +`dw task-queue:retirement` and `dw task-queue:retire` (CLI 2.12.0 and later) +inspect and retire one build cohort (`--build-id ` or `--unversioned`) +or, with neither option, every cohort on the queue: + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +The inspection is read-only. When the target is retirable, it prints the +matching `dw task-queue:retire` command bound to the inspected inventory +revision. The Server repeats the check when it retires. A refused retire is +HTTP 409 and changes nothing: `dw` prints each blocker with its recovery step +and exits with code `2`. Both commands need a Server that advertises +`capabilities.worker_build_retirement` (native Server 3.14.0 or later); on any +other Server, `dw` exits with code `8` before sending the request. See +[Retire A Build Or Queue](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue) +for the full journey. + `dw task-queue:pause-activities`, `dw task-queue:resume-activities` and `dw task-queue:activity-dispatch` (CLI 2.7.0 and later) pause, resume and show activity dispatch on one task queue of the selected namespace, for example diff --git a/docs/polyglot/worker-build-id-rollout.md b/docs/polyglot/worker-build-id-rollout.md index f5cf2b9aa5e..eb7d24f4ff3 100644 --- a/docs/polyglot/worker-build-id-rollout.md +++ b/docs/polyglot/worker-build-id-rollout.md @@ -223,8 +223,8 @@ an operator or admin token and the namespace, like the other build-id routes. 4. Stop the old build's processes only after the retire succeeds. Without `--build-id` or `--unversioned`, both commands act on every cohort on -the queue. These commands ship in the first CLI release after 2.11.0; with CLI -2.11.0 or earlier, call the HTTP routes directly. +the queue. These commands need CLI 2.12.0 or later; with an earlier +CLI, call the HTTP routes directly. The inventory counts open runs pinned to the build (including waiting, continued and child runs), ready, leased and delayed tasks (activity retries diff --git a/i18n/de/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md b/i18n/de/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md index 64ec5bbe865..056306161ed 100644 --- a/i18n/de/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md +++ b/i18n/de/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md @@ -428,6 +428,8 @@ Tokens gehören zum Namespace und zur Filterauswahl. Beginnen Sie nach einer Fil | `dw task-queue:build-ids ` | Kohortenzustand je Build-ID und Rollout-Status einer Warteschlange untersuchen. | `--json` | | `dw task-queue:drain ` | Build-ID-Kohorte als auslaufend markieren, damit sie keine neuen Tasks übernimmt. | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | Frühere Leerung aufheben, sodass die Kohorte wieder neue Tasks übernimmt. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | Zeigt, was die Stilllegung einer Build-Kohorte oder der ganzen Queue noch blockiert, mit Anzahlen, Beispielen und Wiederherstellungsschritten. Nur lesend. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | Legt eine Build-Kohorte oder die ganze Queue nur still, wenn nichts mehr davon abhängt; eine Ablehnung ändert nichts. | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | Neue Activity-Zuteilung auf einer Task-Warteschlange anhalten, bis sie fortgesetzt wird. | `--reason `, `--json` | | `dw task-queue:resume-activities ` | Activity-Zuteilung auf einer angehaltenen Task-Warteschlange fortsetzen. | `--json` | | `dw task-queue:activity-dispatch ` | Anzeigen, ob die Activity-Zuteilung angehalten ist und wer sie wann und warum angehalten oder fortgesetzt hat. | `--json` | @@ -446,6 +448,15 @@ einem Fehler für ungültige Optionen. Beide Befehle sind idempotent: Wiederholt Leeren verschiebt `drained_at` nicht. Das Fortsetzen einer bereits aktiven Kohorte ändert nichts. +`dw task-queue:retirement` und `dw task-queue:retire` (CLI 2.12.0 und neuer) prüfen eine Build-Kohorte (`--build-id ` oder `--unversioned`) oder ohne beide Optionen alle Kohorten der Queue und legen sie still: + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +Die Prüfung ist nur lesend. Ist das Ziel stilllegbar, gibt sie den passenden Befehl `dw task-queue:retire` aus, gebunden an die geprüfte Inventarrevision. Der Server wiederholt die Prüfung beim Stilllegen. Eine abgelehnte Stilllegung ist HTTP 409 und ändert nichts: `dw` zeigt jeden Blocker mit seinem Wiederherstellungsschritt und endet mit Code `2`. Beide Befehle brauchen einen Server, der `capabilities.worker_build_retirement` meldet (nativer Server 3.14.0 oder neuer); bei jedem anderen Server endet `dw` mit Code `8`, bevor die Anfrage gesendet wird. Den vollständigen Ablauf beschreibt [Build oder Queue stilllegen](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue). + `dw task-queue:pause-activities`, `dw task-queue:resume-activities` und `dw task-queue:activity-dispatch` (CLI 2.7.0 und neuer) halten die Activity-Zuteilung auf einer Task-Warteschlange des gewählten Namespace an, diff --git a/i18n/de/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md b/i18n/de/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md index 468b85bddbe..2fca6e28d67 100644 --- a/i18n/de/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md +++ b/i18n/de/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md @@ -153,7 +153,7 @@ Native Server 3.14.0 und neuer beantworten, ob ein Build oder eine Queue sicher 4. Stoppen Sie die Prozesse des alten Builds erst, nachdem die Stilllegung erfolgreich war. -Ohne `--build-id` oder `--unversioned` wirken beide Befehle auf alle Kohorten der Queue. Die Befehle erscheinen im ersten CLI-Release nach 2.11.0; mit CLI 2.11.0 oder älter rufen Sie die HTTP-Routen direkt auf. +Ohne `--build-id` oder `--unversioned` wirken beide Befehle auf alle Kohorten der Queue. Die Befehle benötigen CLI 2.12.0 oder neuer; mit einer älteren CLI rufen Sie die HTTP-Routen direkt auf. Das Inventar zählt offene, an den Build gepinnte Läufe (einschließlich wartender, fortgesetzter und Kind-Läufe), bereite, geleaste und verzögerte Tasks (noch nicht fällige Aktivitäts-Retries und Timer), offene Aktivitäten, ausstehende Update-Validierungen und bei einer Queue die Schedules, die Läufe auf ihr starten. Ein offener Lauf ohne gespeicherte Task-Queue macht das Inventar `incomplete`; dann ist keine Stilllegung möglich. diff --git a/i18n/de/source-hashes.json b/i18n/de/source-hashes.json index 235b9dcc593..dc7b69bd3a3 100644 --- a/i18n/de/source-hashes.json +++ b/i18n/de/source-hashes.json @@ -72,7 +72,7 @@ "polyglot/avro-value-protocol.md": "602e66c6288c1dd69d2b400c64e4739ad3a0493b5be269cee40f7848b11f260a", "polyglot/cancellation.md": "f676cd3ddb39246a0f580a1e16c83bc36d2ed9458b9e6009af4cc192d299ac62", "polyglot/cli-python-parity.md": "50f9da7fc410f1046328b35333feb3c123e7007316b5ce5b07f88404537ae36f", - "polyglot/cli-reference.md": "74366a781733e042070a788b039c109b58c3a5798e94667cb6df0674d27b0f6f", + "polyglot/cli-reference.md": "9028b697b8d41abdbf5d8d1d929aff656b905e2742b1c923dc21feea7df3fc7d", "polyglot/cli.mdx": "dd4085314000b01ef1addf1686d287cfa2c1207797cb1126bc7cf44751daade1", "polyglot/cloud-control-plane.md": "9dc0b85e5ea41d59e55a8d12bef7b2dcafe69d9c499fb1305f58fde7a28d3e07", "polyglot/database-support.md": "518f679ae723ae4d39db7cac78008bc8edb84a6cfba2e6c668d8f2be5d378d03", @@ -98,7 +98,7 @@ "polyglot/task-matching-dispatch.md": "9c8ffbbee16b5da48e7882721d7ba8eac209a374a6ca766d93d2b17e825b203d", "polyglot/task-queue-admission.md": "efcf934876a27c153dd3ecd1a995e7c08b37452c79dfcbba1ae7fa0a8cbad327", "polyglot/visibility-query-language.md": "15790074c904c6cdbb1de8dfade95ea9ca6391f2f16412db517a2fb84ef08334", - "polyglot/worker-build-id-rollout.md": "822de3400c55367511c69de02f540845a9569e7d8be63bcf062f938a9acfeb82", + "polyglot/worker-build-id-rollout.md": "b8e1b0d0f0418a8db4ae23d2fd53a103c862c8bca7e9bf02e9b49d42a5857b52", "polyglot/worker-compatibility-routing.md": "b05150fe1e18ff6dcc6e8047bd445f5ef3522540f2102981d89c65e45770bb69", "polyglot/worker-protocol.md": "91b18b39d626c1288bfa3f6b8212fa8246aa14393cb489a39fe90379bc4cd4b2", "polyglot/workflow-signals.md": "cfef2937ff4052ebd00494cdec522ef9c830d58389dfd249342d667d5c583839", diff --git a/i18n/es/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md b/i18n/es/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md index c7cf447ac78..59bf58c1e03 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md @@ -308,6 +308,8 @@ Los tokens pertenecen al espacio de nombres y a la selección de filtros. Empiec | `dw task-queue:build-ids ` | Inspeccionar estado de cohortes por build id y despliegue de una cola. | `--json` | | `dw task-queue:drain ` | Marcar una cohorte como drenando para que deje de reclamar tareas nuevas. | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | Borrar un drenaje anterior para volver a reclamar tareas. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | Muestra qué bloquea todavía la retirada de una cohorte de compilación o de toda la cola, con recuentos, muestras y pasos de recuperación. Solo lectura. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | Retira una cohorte de compilación o toda la cola solo cuando nada depende de ella; un rechazo no cambia nada. | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | Retener el despacho de nuevas actividades en una cola de tareas hasta reanudarlo. | `--reason `, `--json` | | `dw task-queue:resume-activities ` | Reanudar el despacho de actividades en una cola de tareas pausada. | `--json` | | `dw task-queue:activity-dispatch ` | Mostrar si el despacho de actividades está pausado, y quién lo pausó o reanudó, cuándo y por qué. | `--json` | @@ -316,6 +318,15 @@ Los comandos de cola son la vista operativa preferida para diagnosticar limitaci `dw task-queue:drain` y `dw task-queue:resume` requieren `--build-id ` para una cohorte concreta o `--unversioned` para workers registrados sin `build_id`. Combinarlos falla de inmediato por opción no válida. Ambos son idempotentes: repetir el drenaje no desplaza `drained_at` y reanudar una cohorte ya activa no cambia nada. +`dw task-queue:retirement` y `dw task-queue:retire` (CLI 2.12.0 y posteriores) inspeccionan y retiran una cohorte de compilación (`--build-id ` o `--unversioned`) o, sin ninguna de las dos opciones, todas las cohortes de la cola: + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +La inspección es de solo lectura. Cuando el destino se puede retirar, imprime el comando `dw task-queue:retire` correspondiente, vinculado a la revisión de inventario inspeccionada. El servidor repite la comprobación al retirar. Una retirada rechazada es HTTP 409 y no cambia nada: `dw` muestra cada bloqueo con su paso de recuperación y termina con el código `2`. Ambos comandos necesitan un servidor que anuncie `capabilities.worker_build_retirement` (servidor nativo 3.14.0 o posterior); con cualquier otro servidor, `dw` termina con el código `8` antes de enviar la solicitud. Consulta [Retirar una compilación o una cola](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue) para el recorrido completo. + `dw task-queue:pause-activities`, `dw task-queue:resume-activities` y `dw task-queue:activity-dispatch` (CLI 2.7.0 y posteriores) pausan, reanudan y muestran el despacho de actividades en una cola de tareas del namespace seleccionado, por ejemplo durante una caída de un servicio externo: ```bash diff --git a/i18n/es/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md b/i18n/es/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md index fca069d4ce8..0046c915f0c 100644 --- a/i18n/es/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md +++ b/i18n/es/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md @@ -153,7 +153,7 @@ Native Server 3.14.0 y posteriores indican si una compilación o una cola puede 4. Detén los procesos de la compilación antigua solo después de que la retirada tenga éxito. -Sin `--build-id` ni `--unversioned`, ambos comandos actúan sobre todas las cohortes de la cola. Estos comandos se incluyen en la primera versión de la CLI posterior a 2.11.0; con la CLI 2.11.0 o anterior, llama directamente a las rutas HTTP. +Sin `--build-id` ni `--unversioned`, ambos comandos actúan sobre todas las cohortes de la cola. Estos comandos requieren la CLI 2.12.0 o posterior; con una CLI anterior, llama directamente a las rutas HTTP. El inventario cuenta las ejecuciones abiertas fijadas a la compilación (incluidas las que esperan, las continuadas y las hijas), las tareas listas, concedidas y diferidas (reintentos de actividad y temporizadores aún no vencidos), las actividades abiertas, las validaciones de actualización pendientes y, para una cola, las programaciones que inician ejecuciones en ella. Una ejecución abierta sin cola de tareas registrada deja el inventario `incomplete`, y la retirada no está disponible. diff --git a/i18n/es/source-hashes.json b/i18n/es/source-hashes.json index 235b9dcc593..dc7b69bd3a3 100644 --- a/i18n/es/source-hashes.json +++ b/i18n/es/source-hashes.json @@ -72,7 +72,7 @@ "polyglot/avro-value-protocol.md": "602e66c6288c1dd69d2b400c64e4739ad3a0493b5be269cee40f7848b11f260a", "polyglot/cancellation.md": "f676cd3ddb39246a0f580a1e16c83bc36d2ed9458b9e6009af4cc192d299ac62", "polyglot/cli-python-parity.md": "50f9da7fc410f1046328b35333feb3c123e7007316b5ce5b07f88404537ae36f", - "polyglot/cli-reference.md": "74366a781733e042070a788b039c109b58c3a5798e94667cb6df0674d27b0f6f", + "polyglot/cli-reference.md": "9028b697b8d41abdbf5d8d1d929aff656b905e2742b1c923dc21feea7df3fc7d", "polyglot/cli.mdx": "dd4085314000b01ef1addf1686d287cfa2c1207797cb1126bc7cf44751daade1", "polyglot/cloud-control-plane.md": "9dc0b85e5ea41d59e55a8d12bef7b2dcafe69d9c499fb1305f58fde7a28d3e07", "polyglot/database-support.md": "518f679ae723ae4d39db7cac78008bc8edb84a6cfba2e6c668d8f2be5d378d03", @@ -98,7 +98,7 @@ "polyglot/task-matching-dispatch.md": "9c8ffbbee16b5da48e7882721d7ba8eac209a374a6ca766d93d2b17e825b203d", "polyglot/task-queue-admission.md": "efcf934876a27c153dd3ecd1a995e7c08b37452c79dfcbba1ae7fa0a8cbad327", "polyglot/visibility-query-language.md": "15790074c904c6cdbb1de8dfade95ea9ca6391f2f16412db517a2fb84ef08334", - "polyglot/worker-build-id-rollout.md": "822de3400c55367511c69de02f540845a9569e7d8be63bcf062f938a9acfeb82", + "polyglot/worker-build-id-rollout.md": "b8e1b0d0f0418a8db4ae23d2fd53a103c862c8bca7e9bf02e9b49d42a5857b52", "polyglot/worker-compatibility-routing.md": "b05150fe1e18ff6dcc6e8047bd445f5ef3522540f2102981d89c65e45770bb69", "polyglot/worker-protocol.md": "91b18b39d626c1288bfa3f6b8212fa8246aa14393cb489a39fe90379bc4cd4b2", "polyglot/workflow-signals.md": "cfef2937ff4052ebd00494cdec522ef9c830d58389dfd249342d667d5c583839", diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md b/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md index 8a98877bc59..a4a75cbf025 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md @@ -435,6 +435,8 @@ Les jetons appartiennent à l’espace de noms et à la sélection de filtres. R | `dw task-queue:build-ids ` | Inspecter l'état des cohortes par build-id et du déploiement d'une file. | `--json` | | `dw task-queue:drain ` | Marquer une cohorte build-id en drainage pour arrêter les nouvelles prises de tâches. | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | Effacer un drainage antérieur pour reprendre les nouvelles prises de tâches. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | Affiche ce qui bloque encore le retrait d'une cohorte de build ou de toute la file, avec les nombres, des exemples et les étapes de reprise. Lecture seule. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | Retire une cohorte de build ou toute la file uniquement quand plus rien n'en dépend ; un refus ne change rien. | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | Suspendre la distribution des nouvelles activités sur une file de tâches jusqu'à sa reprise. | `--reason `, `--json` | | `dw task-queue:resume-activities ` | Reprendre la distribution des activités sur une file de tâches suspendue. | `--json` | | `dw task-queue:activity-dispatch ` | Indiquer si la distribution des activités est suspendue, et qui l'a suspendue ou reprise, quand et pourquoi. | `--json` | @@ -452,6 +454,15 @@ workers inscrits sans `build_id`. Les combiner échoue immédiatement avec une erreur d'option invalide. Les deux commandes sont idempotentes : les drainages répétés ne décalent pas `drained_at`, et réactiver une cohorte déjà active ne fait rien. +`dw task-queue:retirement` et `dw task-queue:retire` (CLI 2.12.0 et ultérieures) inspectent et retirent une cohorte de build (`--build-id ` ou `--unversioned`) ou, sans l'une ni l'autre option, toutes les cohortes de la file : + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +L'inspection est en lecture seule. Quand la cible peut être retirée, elle affiche la commande `dw task-queue:retire` correspondante, liée à la révision d'inventaire inspectée. Le serveur refait la vérification au moment du retrait. Un retrait refusé est un HTTP 409 et ne change rien : `dw` affiche chaque blocage avec son étape de reprise et se termine avec le code `2`. Les deux commandes exigent un serveur qui annonce `capabilities.worker_build_retirement` (serveur natif 3.14.0 ou ultérieur) ; avec tout autre serveur, `dw` se termine avec le code `8` avant d'envoyer la requête. Voir [Retirer un build ou une file](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue) pour le parcours complet. + `dw task-queue:pause-activities`, `dw task-queue:resume-activities` et `dw task-queue:activity-dispatch` (CLI 2.7.0 et versions ultérieures) suspendent, reprennent et affichent la distribution des activités sur une file diff --git a/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md b/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md index dd5bac0a482..643a169fad5 100644 --- a/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md +++ b/i18n/fr/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md @@ -153,7 +153,7 @@ Native Server 3.14.0 et versions ultérieures indiquent si un build ou une file 4. N'arrêtez les processus de l'ancien build qu'après la réussite du retrait. -Sans `--build-id` ni `--unversioned`, les deux commandes portent sur toutes les cohortes de la file. Ces commandes arrivent dans la première version de la CLI après 2.11.0 ; avec la CLI 2.11.0 ou antérieure, appelez directement les routes HTTP. +Sans `--build-id` ni `--unversioned`, les deux commandes portent sur toutes les cohortes de la file. Ces commandes nécessitent la CLI 2.12.0 ou ultérieure ; avec une CLI antérieure, appelez directement les routes HTTP. L'inventaire compte les exécutions ouvertes épinglées au build (y compris celles en attente, continuées et enfants), les tâches prêtes, louées et différées (reprises d'activité et timers pas encore échus), les activités ouvertes, les validations de mise à jour en attente et, pour une file, les planifications qui y démarrent des exécutions. Une exécution ouverte sans file de tâches enregistrée rend l'inventaire `incomplete`, et le retrait est indisponible. diff --git a/i18n/fr/source-hashes.json b/i18n/fr/source-hashes.json index 235b9dcc593..dc7b69bd3a3 100644 --- a/i18n/fr/source-hashes.json +++ b/i18n/fr/source-hashes.json @@ -72,7 +72,7 @@ "polyglot/avro-value-protocol.md": "602e66c6288c1dd69d2b400c64e4739ad3a0493b5be269cee40f7848b11f260a", "polyglot/cancellation.md": "f676cd3ddb39246a0f580a1e16c83bc36d2ed9458b9e6009af4cc192d299ac62", "polyglot/cli-python-parity.md": "50f9da7fc410f1046328b35333feb3c123e7007316b5ce5b07f88404537ae36f", - "polyglot/cli-reference.md": "74366a781733e042070a788b039c109b58c3a5798e94667cb6df0674d27b0f6f", + "polyglot/cli-reference.md": "9028b697b8d41abdbf5d8d1d929aff656b905e2742b1c923dc21feea7df3fc7d", "polyglot/cli.mdx": "dd4085314000b01ef1addf1686d287cfa2c1207797cb1126bc7cf44751daade1", "polyglot/cloud-control-plane.md": "9dc0b85e5ea41d59e55a8d12bef7b2dcafe69d9c499fb1305f58fde7a28d3e07", "polyglot/database-support.md": "518f679ae723ae4d39db7cac78008bc8edb84a6cfba2e6c668d8f2be5d378d03", @@ -98,7 +98,7 @@ "polyglot/task-matching-dispatch.md": "9c8ffbbee16b5da48e7882721d7ba8eac209a374a6ca766d93d2b17e825b203d", "polyglot/task-queue-admission.md": "efcf934876a27c153dd3ecd1a995e7c08b37452c79dfcbba1ae7fa0a8cbad327", "polyglot/visibility-query-language.md": "15790074c904c6cdbb1de8dfade95ea9ca6391f2f16412db517a2fb84ef08334", - "polyglot/worker-build-id-rollout.md": "822de3400c55367511c69de02f540845a9569e7d8be63bcf062f938a9acfeb82", + "polyglot/worker-build-id-rollout.md": "b8e1b0d0f0418a8db4ae23d2fd53a103c862c8bca7e9bf02e9b49d42a5857b52", "polyglot/worker-compatibility-routing.md": "b05150fe1e18ff6dcc6e8047bd445f5ef3522540f2102981d89c65e45770bb69", "polyglot/worker-protocol.md": "91b18b39d626c1288bfa3f6b8212fa8246aa14393cb489a39fe90379bc4cd4b2", "polyglot/workflow-signals.md": "cfef2937ff4052ebd00494cdec522ef9c830d58389dfd249342d667d5c583839", diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md b/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md index 4b93bcda911..a56ba60e300 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md @@ -297,6 +297,8 @@ dw schedule:list --namespace=production --status=paused --type=orders.rollup \ | `dw task-queue:build-ids ` | 1キューの build-id 別コホートとロールアウト状態を検査。 | `--json` | | `dw task-queue:drain ` | コホートをドレイン中として新規クレームを止める。 | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | 以前のドレインを消去して再び新規クレームを可能にする。 | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | 1つのビルドコホートまたはキュー全体の廃止をまだ妨げているものを、件数・サンプル・復旧手順とともに表示する。読み取り専用。 | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | 依存するものが何もないときにだけ、1つのビルドコホートまたはキュー全体を廃止する。拒否された場合は何も変更しない。 | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | 1 つのタスクキューで、再開するまで新しいアクティビティのディスパッチを保留する。 | `--reason `, `--json` | | `dw task-queue:resume-activities ` | 一時停止中のタスクキューでアクティビティのディスパッチを再開する。 | `--json` | | `dw task-queue:activity-dispatch ` | アクティビティのディスパッチが一時停止中かどうかと、誰がいつ、なぜ一時停止または再開したかを表示する。 | `--json` | @@ -305,6 +307,15 @@ dw schedule:list --namespace=production --status=paused --type=orders.rollup \ `dw task-queue:drain` と `dw task-queue:resume` は両方とも、特定ビルドコホートを対象とする `--build-id `、または `build_id` なしで登録した Worker コホートを対象とする `--unversioned` のどちらかが必要です。併用すると不正オプションで早期に失敗します。両コマンドは冪等です。ドレインを繰り返しても `drained_at` はずれず、有効なコホートの再開は何もしません。 +`dw task-queue:retirement` と `dw task-queue:retire`(CLI 2.12.0 以降)は、1つのビルドコホート(`--build-id ` または `--unversioned`)を、どちらのオプションもなければキュー上の全コホートを調査・廃止します。 + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +調査は読み取り専用です。対象が廃止可能な場合は、調査したインベントリリビジョンに結び付いた対応する `dw task-queue:retire` コマンドを表示します。サーバーは廃止時にチェックを繰り返します。拒否された廃止は HTTP 409 で、何も変更しません。`dw` は各ブロッカーと復旧手順を表示し、コード `2` で終了します。両コマンドには `capabilities.worker_build_retirement` を通知するサーバー(ネイティブ Server 3.14.0 以降)が必要です。それ以外のサーバーでは、`dw` はリクエストを送信する前にコード `8` で終了します。全体の流れは[ビルドまたはキューを廃止する](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue)を参照してください。 + `dw task-queue:pause-activities`、`dw task-queue:resume-activities`、`dw task-queue:activity-dispatch`(CLI 2.7.0 以降)は、選択した namespace の 1 つのタスクキューで、アクティビティのディスパッチを一時停止、再開、表示します。たとえば下流サービスの障害中に使います。 ```bash diff --git a/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md b/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md index 8d0e152e733..523d31a9cb0 100644 --- a/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md +++ b/i18n/ja/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md @@ -153,7 +153,7 @@ Native Server 3.14.0以降は、ビルドやキューを安全に削除できる 4. 廃止が成功してから旧ビルドのプロセスを停止します。 -`--build-id`も`--unversioned`も指定しない場合、両コマンドはキューの全コホートを対象にします。これらのコマンドは2.11.0の次のCLIリリースで提供されます。CLI 2.11.0以前ではHTTPルートを直接呼び出してください。 +`--build-id`も`--unversioned`も指定しない場合、両コマンドはキューの全コホートを対象にします。これらのコマンドにはCLI 2.12.0以降が必要です。それより前のCLIではHTTPルートを直接呼び出してください。 インベントリは、ビルドに固定された未完了の実行(待機中、継続済み、子の実行を含む)、準備完了・リース中・遅延中のタスク(期限前のアクティビティリトライとタイマー)、未完了のアクティビティ、保留中の更新検証、そしてキューの場合はそのキューで実行を開始するスケジュールを数えます。タスクキューが記録されていない未完了の実行があるとインベントリは`incomplete`となり、廃止はできません。 diff --git a/i18n/ja/source-hashes.json b/i18n/ja/source-hashes.json index 235b9dcc593..dc7b69bd3a3 100644 --- a/i18n/ja/source-hashes.json +++ b/i18n/ja/source-hashes.json @@ -72,7 +72,7 @@ "polyglot/avro-value-protocol.md": "602e66c6288c1dd69d2b400c64e4739ad3a0493b5be269cee40f7848b11f260a", "polyglot/cancellation.md": "f676cd3ddb39246a0f580a1e16c83bc36d2ed9458b9e6009af4cc192d299ac62", "polyglot/cli-python-parity.md": "50f9da7fc410f1046328b35333feb3c123e7007316b5ce5b07f88404537ae36f", - "polyglot/cli-reference.md": "74366a781733e042070a788b039c109b58c3a5798e94667cb6df0674d27b0f6f", + "polyglot/cli-reference.md": "9028b697b8d41abdbf5d8d1d929aff656b905e2742b1c923dc21feea7df3fc7d", "polyglot/cli.mdx": "dd4085314000b01ef1addf1686d287cfa2c1207797cb1126bc7cf44751daade1", "polyglot/cloud-control-plane.md": "9dc0b85e5ea41d59e55a8d12bef7b2dcafe69d9c499fb1305f58fde7a28d3e07", "polyglot/database-support.md": "518f679ae723ae4d39db7cac78008bc8edb84a6cfba2e6c668d8f2be5d378d03", @@ -98,7 +98,7 @@ "polyglot/task-matching-dispatch.md": "9c8ffbbee16b5da48e7882721d7ba8eac209a374a6ca766d93d2b17e825b203d", "polyglot/task-queue-admission.md": "efcf934876a27c153dd3ecd1a995e7c08b37452c79dfcbba1ae7fa0a8cbad327", "polyglot/visibility-query-language.md": "15790074c904c6cdbb1de8dfade95ea9ca6391f2f16412db517a2fb84ef08334", - "polyglot/worker-build-id-rollout.md": "822de3400c55367511c69de02f540845a9569e7d8be63bcf062f938a9acfeb82", + "polyglot/worker-build-id-rollout.md": "b8e1b0d0f0418a8db4ae23d2fd53a103c862c8bca7e9bf02e9b49d42a5857b52", "polyglot/worker-compatibility-routing.md": "b05150fe1e18ff6dcc6e8047bd445f5ef3522540f2102981d89c65e45770bb69", "polyglot/worker-protocol.md": "91b18b39d626c1288bfa3f6b8212fa8246aa14393cb489a39fe90379bc4cd4b2", "polyglot/workflow-signals.md": "cfef2937ff4052ebd00494cdec522ef9c830d58389dfd249342d667d5c583839", diff --git a/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md b/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md index d41385ec10f..dc4fa79e79b 100644 --- a/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md +++ b/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md @@ -417,6 +417,8 @@ Os tokens pertencem ao namespace e à seleção de filtros. Reinicie sem token a | `dw task-queue:build-ids ` | Inspeciona estado das coortes por build id e status de rollout de uma fila. | `--json` | | `dw task-queue:drain ` | Marca uma coorte como drenando para parar de reservar novas tarefas. | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | Limpa uma drenagem anterior para voltar a reservar trabalho. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | Mostra o que ainda impede a retirada de uma coorte de build ou da fila inteira, com contagens, amostras e passos de recuperação. Somente leitura. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | Retira uma coorte de build ou a fila inteira somente quando nada depende dela; uma recusa não altera nada. | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | Retém o despacho de novas atividades em uma fila de tarefas até que seja retomado. | `--reason `, `--json` | | `dw task-queue:resume-activities ` | Retoma o despacho de atividades em uma fila de tarefas pausada. | `--json` | | `dw task-queue:activity-dispatch ` | Mostra se o despacho de atividades está pausado, e quem o pausou ou retomou, quando e por quê. | `--json` | @@ -434,6 +436,15 @@ para uma coorte específica ou `--unversioned` para workers registrados sem Ambos são idempotentes: drenagens repetidas não alteram `drained_at`, e retomar uma coorte já ativa não faz nada. +`dw task-queue:retirement` e `dw task-queue:retire` (CLI 2.12.0 e posteriores) inspecionam e retiram uma coorte de build (`--build-id ` ou `--unversioned`) ou, sem nenhuma das duas opções, todas as coortes da fila: + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +A inspeção é somente leitura. Quando o alvo pode ser retirado, ela imprime o comando `dw task-queue:retire` correspondente, vinculado à revisão de inventário inspecionada. O servidor repete a verificação ao retirar. Uma retirada recusada é HTTP 409 e não altera nada: o `dw` mostra cada bloqueio com seu passo de recuperação e termina com o código `2`. Os dois comandos precisam de um servidor que anuncie `capabilities.worker_build_retirement` (servidor nativo 3.14.0 ou posterior); com qualquer outro servidor, o `dw` termina com o código `8` antes de enviar a requisição. Veja [Retirar um build ou uma fila](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue) para o fluxo completo. + `dw task-queue:pause-activities`, `dw task-queue:resume-activities` e `dw task-queue:activity-dispatch` (CLI 2.7.0 e posteriores) pausam, retomam e mostram o despacho de atividades em uma fila de tarefas do namespace diff --git a/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md b/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md index e350686106a..1c8ba070c5f 100644 --- a/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md +++ b/i18n/pt-BR/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md @@ -153,7 +153,7 @@ O Native Server 3.14.0 e posteriores informam se um build ou uma fila pode ser r 4. Pare os processos do build antigo somente depois que a retirada for bem-sucedida. -Sem `--build-id` nem `--unversioned`, os dois comandos atuam sobre todas as coortes da fila. Esses comandos chegam na primeira versão da CLI posterior à 2.11.0; com a CLI 2.11.0 ou anterior, chame as rotas HTTP diretamente. +Sem `--build-id` nem `--unversioned`, os dois comandos atuam sobre todas as coortes da fila. Esses comandos exigem a CLI 2.12.0 ou posterior; com uma CLI anterior, chame as rotas HTTP diretamente. O inventário conta as execuções abertas fixadas no build (incluindo as em espera, continuadas e filhas), as tarefas prontas, concedidas e adiadas (novas tentativas de atividade e timers ainda não vencidos), as atividades abertas, as validações de atualização pendentes e, para uma fila, os agendamentos que iniciam execuções nela. Uma execução aberta sem fila de tarefas registrada deixa o inventário `incomplete`, e a retirada fica indisponível. diff --git a/i18n/pt-BR/source-hashes.json b/i18n/pt-BR/source-hashes.json index 235b9dcc593..dc7b69bd3a3 100644 --- a/i18n/pt-BR/source-hashes.json +++ b/i18n/pt-BR/source-hashes.json @@ -72,7 +72,7 @@ "polyglot/avro-value-protocol.md": "602e66c6288c1dd69d2b400c64e4739ad3a0493b5be269cee40f7848b11f260a", "polyglot/cancellation.md": "f676cd3ddb39246a0f580a1e16c83bc36d2ed9458b9e6009af4cc192d299ac62", "polyglot/cli-python-parity.md": "50f9da7fc410f1046328b35333feb3c123e7007316b5ce5b07f88404537ae36f", - "polyglot/cli-reference.md": "74366a781733e042070a788b039c109b58c3a5798e94667cb6df0674d27b0f6f", + "polyglot/cli-reference.md": "9028b697b8d41abdbf5d8d1d929aff656b905e2742b1c923dc21feea7df3fc7d", "polyglot/cli.mdx": "dd4085314000b01ef1addf1686d287cfa2c1207797cb1126bc7cf44751daade1", "polyglot/cloud-control-plane.md": "9dc0b85e5ea41d59e55a8d12bef7b2dcafe69d9c499fb1305f58fde7a28d3e07", "polyglot/database-support.md": "518f679ae723ae4d39db7cac78008bc8edb84a6cfba2e6c668d8f2be5d378d03", @@ -98,7 +98,7 @@ "polyglot/task-matching-dispatch.md": "9c8ffbbee16b5da48e7882721d7ba8eac209a374a6ca766d93d2b17e825b203d", "polyglot/task-queue-admission.md": "efcf934876a27c153dd3ecd1a995e7c08b37452c79dfcbba1ae7fa0a8cbad327", "polyglot/visibility-query-language.md": "15790074c904c6cdbb1de8dfade95ea9ca6391f2f16412db517a2fb84ef08334", - "polyglot/worker-build-id-rollout.md": "822de3400c55367511c69de02f540845a9569e7d8be63bcf062f938a9acfeb82", + "polyglot/worker-build-id-rollout.md": "b8e1b0d0f0418a8db4ae23d2fd53a103c862c8bca7e9bf02e9b49d42a5857b52", "polyglot/worker-compatibility-routing.md": "b05150fe1e18ff6dcc6e8047bd445f5ef3522540f2102981d89c65e45770bb69", "polyglot/worker-protocol.md": "91b18b39d626c1288bfa3f6b8212fa8246aa14393cb489a39fe90379bc4cd4b2", "polyglot/workflow-signals.md": "cfef2937ff4052ebd00494cdec522ef9c830d58389dfd249342d667d5c583839", diff --git a/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md b/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md index 65b681d3d19..9413f06eaaa 100644 --- a/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md +++ b/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md @@ -415,6 +415,8 @@ dw schedule:list --namespace=production --status=paused --type=orders.rollup \ | `dw task-queue:build-ids ` | Перевірити стан груп за build-id і розгортання однієї черги. | `--json` | | `dw task-queue:drain ` | Позначити групу build-id як draining, щоб вона перестала отримувати нові завдання. | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | Зняти попередній drain, щоб група знову отримувала нові завдання. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | Показує, що ще блокує виведення когорти збірки або всієї черги, з кількостями, прикладами та кроками відновлення. Лише читання. | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | Виводить когорту збірки або всю чергу, лише коли від неї ніщо не залежить; відмова нічого не змінює. | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | Затримати диспетчеризацію нових activity в одній черзі завдань до відновлення. | `--reason `, `--json` | | `dw task-queue:resume-activities ` | Відновити диспетчеризацію activity в призупиненій черзі завдань. | `--json` | | `dw task-queue:activity-dispatch ` | Показати, чи призупинено диспетчеризацію activity, хто її призупинив або відновив, коли й чому. | `--json` | @@ -431,6 +433,15 @@ dw schedule:list --namespace=production --status=paused --type=orders.rollup \ помилку параметрів. Обидві команди ідемпотентні: повторний drain не зсуває записаний час `drained_at`, а resume вже активної групи не змінює стану. +`dw task-queue:retirement` і `dw task-queue:retire` (CLI 2.12.0 і новіші) перевіряють і виводять одну когорту збірки (`--build-id ` або `--unversioned`) або, без жодної з цих опцій, усі когорти черги: + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +Перевірка лише читає дані. Якщо ціль можна вивести, вона друкує відповідну команду `dw task-queue:retire`, прив’язану до перевіреної ревізії інвентарю. Під час виведення сервер повторює перевірку. Відхилене виведення — це HTTP 409, і воно нічого не змінює: `dw` показує кожен блокер із кроком відновлення та завершується з кодом `2`. Обидві команди потребують сервера, що оголошує `capabilities.worker_build_retirement` (нативний сервер 3.14.0 або новіший); з будь-яким іншим сервером `dw` завершується з кодом `8` ще до надсилання запиту. Повний сценарій описано в розділі [Виведення збірки або черги з експлуатації](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue). + `dw task-queue:pause-activities`, `dw task-queue:resume-activities` і `dw task-queue:activity-dispatch` (CLI 2.7.0 і новіші) призупиняють, відновлюють і показують диспетчеризацію activity в одній черзі завдань diff --git a/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md b/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md index 710dac6a07e..687eb32b7a5 100644 --- a/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md +++ b/i18n/uk/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md @@ -153,7 +153,7 @@ Native Server 3.14.0 і новіші визначають, чи можна бе 4. Зупиняйте процеси старої збірки лише після успішного виведення. -Без `--build-id` чи `--unversioned` обидві команди діють на всі когорти черги. Ці команди з’являться в першому випуску CLI після 2.11.0; з CLI 2.11.0 або старішою викликайте HTTP-маршрути напряму. +Без `--build-id` чи `--unversioned` обидві команди діють на всі когорти черги. Ці команди потребують CLI 2.12.0 або новішої; зі старішою CLI викликайте HTTP-маршрути напряму. Інвентар рахує відкриті виконання, закріплені за збіркою (зокрема ті, що чекають, продовжені й дочірні), готові, орендовані та відкладені задачі (повтори активностей і таймери, строк яких ще не настав), відкриті активності, незавершені перевірки оновлень, а для черги — розклади, що запускають у ній виконання. Відкрите виконання без записаної черги задач робить інвентар `incomplete`, і виведення стає недоступним. diff --git a/i18n/uk/source-hashes.json b/i18n/uk/source-hashes.json index 235b9dcc593..dc7b69bd3a3 100644 --- a/i18n/uk/source-hashes.json +++ b/i18n/uk/source-hashes.json @@ -72,7 +72,7 @@ "polyglot/avro-value-protocol.md": "602e66c6288c1dd69d2b400c64e4739ad3a0493b5be269cee40f7848b11f260a", "polyglot/cancellation.md": "f676cd3ddb39246a0f580a1e16c83bc36d2ed9458b9e6009af4cc192d299ac62", "polyglot/cli-python-parity.md": "50f9da7fc410f1046328b35333feb3c123e7007316b5ce5b07f88404537ae36f", - "polyglot/cli-reference.md": "74366a781733e042070a788b039c109b58c3a5798e94667cb6df0674d27b0f6f", + "polyglot/cli-reference.md": "9028b697b8d41abdbf5d8d1d929aff656b905e2742b1c923dc21feea7df3fc7d", "polyglot/cli.mdx": "dd4085314000b01ef1addf1686d287cfa2c1207797cb1126bc7cf44751daade1", "polyglot/cloud-control-plane.md": "9dc0b85e5ea41d59e55a8d12bef7b2dcafe69d9c499fb1305f58fde7a28d3e07", "polyglot/database-support.md": "518f679ae723ae4d39db7cac78008bc8edb84a6cfba2e6c668d8f2be5d378d03", @@ -98,7 +98,7 @@ "polyglot/task-matching-dispatch.md": "9c8ffbbee16b5da48e7882721d7ba8eac209a374a6ca766d93d2b17e825b203d", "polyglot/task-queue-admission.md": "efcf934876a27c153dd3ecd1a995e7c08b37452c79dfcbba1ae7fa0a8cbad327", "polyglot/visibility-query-language.md": "15790074c904c6cdbb1de8dfade95ea9ca6391f2f16412db517a2fb84ef08334", - "polyglot/worker-build-id-rollout.md": "822de3400c55367511c69de02f540845a9569e7d8be63bcf062f938a9acfeb82", + "polyglot/worker-build-id-rollout.md": "b8e1b0d0f0418a8db4ae23d2fd53a103c862c8bca7e9bf02e9b49d42a5857b52", "polyglot/worker-compatibility-routing.md": "b05150fe1e18ff6dcc6e8047bd445f5ef3522540f2102981d89c65e45770bb69", "polyglot/worker-protocol.md": "91b18b39d626c1288bfa3f6b8212fa8246aa14393cb489a39fe90379bc4cd4b2", "polyglot/workflow-signals.md": "cfef2937ff4052ebd00494cdec522ef9c830d58389dfd249342d667d5c583839", diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md index 51c7f074084..8445d8b3ca8 100644 --- a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md +++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/cli-reference.md @@ -297,6 +297,8 @@ dw schedule:list --namespace=production --status=paused --type=orders.rollup \ | `dw task-queue:build-ids ` | 检查一个队列各构建 ID 群组状态及发布状态。 | `--json` | | `dw task-queue:drain ` | 将构建 ID 群组标记为排空,使其停止认领新任务。 | `--build-id `, `--unversioned`, `--json` | | `dw task-queue:resume ` | 清除之前的排空,使群组能再次认领新任务。 | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retirement ` | 显示仍在阻止退役某个构建群组或整个队列的内容,包括数量、示例和恢复步骤。只读。 | `--build-id `, `--unversioned`, `--json` | +| `dw task-queue:retire ` | 仅当没有任何内容依赖它时,才退役某个构建群组或整个队列;被拒绝时不会做任何更改。 | `--build-id `, `--unversioned`, `--expected-revision `, `--json` | | `dw task-queue:pause-activities ` | 在一个任务队列上暂停新的活动派发,直到恢复。 | `--reason `, `--json` | | `dw task-queue:resume-activities ` | 恢复已暂停任务队列上的活动派发。 | `--json` | | `dw task-queue:activity-dispatch ` | 显示活动派发是否已暂停,以及由谁、在何时、因何暂停或恢复。 | `--json` | @@ -305,6 +307,15 @@ dw schedule:list --namespace=production --status=paused --type=orders.rollup \ `dw task-queue:drain` 和 `dw task-queue:resume` 都要求用 `--build-id ` 定位特定构建群组,或用 `--unversioned` 定位未注册 `build_id` 的 Worker 群组。组合两者会立即返回无效选项错误。两个命令都幂等:重复排空不会移动已记录的 `drained_at` 时间戳,恢复已活动群组则无操作。 +`dw task-queue:retirement` 和 `dw task-queue:retire`(CLI 2.12.0 及更高版本)检查并退役一个构建群组(`--build-id ` 或 `--unversioned`),两个选项都不带时则作用于队列上的所有群组: + +```bash +dw task-queue:retirement orders --build-id build-2026.04.20-a3f +dw task-queue:retire orders --build-id build-2026.04.20-a3f --expected-revision=sha256:... +``` + +检查是只读的。目标可退役时,它会打印对应的 `dw task-queue:retire` 命令,并绑定到所检查的清单修订版本。服务器在退役时会重复这项检查。被拒绝的退役返回 HTTP 409,且不做任何更改:`dw` 会列出每个阻碍项及其恢复步骤,并以代码 `2` 退出。两个命令都需要通告 `capabilities.worker_build_retirement` 的服务器(原生 Server 3.14.0 或更高版本);对于其他任何服务器,`dw` 会在发送请求前以代码 `8` 退出。完整流程请参见[退役构建或队列](/docs/polyglot/worker-build-id-rollout#retire-a-build-or-queue)。 + `dw task-queue:pause-activities`、`dw task-queue:resume-activities` 和 `dw task-queue:activity-dispatch`(CLI 2.7.0 及以后)用于暂停、恢复和查看所选 namespace 中一个任务队列的活动派发,例如在下游服务故障期间: ```bash diff --git a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md index b441a55e347..d9b3c0f68ce 100644 --- a/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md +++ b/i18n/zh-Hans/docusaurus-plugin-content-docs/current/polyglot/worker-build-id-rollout.md @@ -153,7 +153,7 @@ Native Server 3.14.0 及更高版本会判断构建或队列能否安全移除 4. 只有在退役成功后,才停止旧构建的进程。 -不带 `--build-id` 或 `--unversioned` 时,两个命令作用于队列上的所有群组。这些命令随 2.11.0 之后的第一个 CLI 版本发布;使用 CLI 2.11.0 或更早版本时,请直接调用 HTTP 路由。 +不带 `--build-id` 或 `--unversioned` 时,两个命令作用于队列上的所有群组。这些命令需要 CLI 2.12.0 或更高版本;使用更早的 CLI 时,请直接调用 HTTP 路由。 清单统计固定在该构建上的未结束运行(包括等待中、已续接和子运行)、就绪、已租约和延迟的任务(尚未到期的活动重试和定时器)、未结束的活动、待处理的更新校验,以及(针对队列)在该队列上启动运行的计划。若存在未记录任务队列的未结束运行,清单为 `incomplete`,无法退役。 diff --git a/i18n/zh-Hans/source-hashes.json b/i18n/zh-Hans/source-hashes.json index 235b9dcc593..dc7b69bd3a3 100644 --- a/i18n/zh-Hans/source-hashes.json +++ b/i18n/zh-Hans/source-hashes.json @@ -72,7 +72,7 @@ "polyglot/avro-value-protocol.md": "602e66c6288c1dd69d2b400c64e4739ad3a0493b5be269cee40f7848b11f260a", "polyglot/cancellation.md": "f676cd3ddb39246a0f580a1e16c83bc36d2ed9458b9e6009af4cc192d299ac62", "polyglot/cli-python-parity.md": "50f9da7fc410f1046328b35333feb3c123e7007316b5ce5b07f88404537ae36f", - "polyglot/cli-reference.md": "74366a781733e042070a788b039c109b58c3a5798e94667cb6df0674d27b0f6f", + "polyglot/cli-reference.md": "9028b697b8d41abdbf5d8d1d929aff656b905e2742b1c923dc21feea7df3fc7d", "polyglot/cli.mdx": "dd4085314000b01ef1addf1686d287cfa2c1207797cb1126bc7cf44751daade1", "polyglot/cloud-control-plane.md": "9dc0b85e5ea41d59e55a8d12bef7b2dcafe69d9c499fb1305f58fde7a28d3e07", "polyglot/database-support.md": "518f679ae723ae4d39db7cac78008bc8edb84a6cfba2e6c668d8f2be5d378d03", @@ -98,7 +98,7 @@ "polyglot/task-matching-dispatch.md": "9c8ffbbee16b5da48e7882721d7ba8eac209a374a6ca766d93d2b17e825b203d", "polyglot/task-queue-admission.md": "efcf934876a27c153dd3ecd1a995e7c08b37452c79dfcbba1ae7fa0a8cbad327", "polyglot/visibility-query-language.md": "15790074c904c6cdbb1de8dfade95ea9ca6391f2f16412db517a2fb84ef08334", - "polyglot/worker-build-id-rollout.md": "822de3400c55367511c69de02f540845a9569e7d8be63bcf062f938a9acfeb82", + "polyglot/worker-build-id-rollout.md": "b8e1b0d0f0418a8db4ae23d2fd53a103c862c8bca7e9bf02e9b49d42a5857b52", "polyglot/worker-compatibility-routing.md": "b05150fe1e18ff6dcc6e8047bd445f5ef3522540f2102981d89c65e45770bb69", "polyglot/worker-protocol.md": "91b18b39d626c1288bfa3f6b8212fa8246aa14393cb489a39fe90379bc4cd4b2", "polyglot/workflow-signals.md": "cfef2937ff4052ebd00494cdec522ef9c830d58389dfd249342d667d5c583839", diff --git a/static/stable-releases.json b/static/stable-releases.json index c841154b20b..e6d6ea373f7 100644 --- a/static/stable-releases.json +++ b/static/stable-releases.json @@ -1,9 +1,9 @@ { "schema": "durable-workflow.docs.stable-releases", "schema_version": 1, - "updated_at": "2026-11-24", + "updated_at": "2026-11-25", "artifacts": { - "cli": "2.11.0", + "cli": "2.12.0", "helm-chart": "5.5.0", "sdk-php": "3.29.0", "sdk-python": "2.23.1",