Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 21 additions & 0 deletions docs/polyglot/cli-reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -423,6 +423,8 @@ Tokens belong to the namespace and filter selection. Start again without a token
| `dw task-queue:build-ids <queue>` | Inspect per-build-id cohort state and rollout status for one queue. | `--json` |
| `dw task-queue:drain <queue>` | Mark a build-id cohort as draining so it stops claiming new tasks. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:resume <queue>` | Clear a previous drain so the cohort can claim new tasks again. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:retirement <queue>` | Show what still blocks retiring one build cohort or the whole queue, with counts, samples and recovery steps. Read-only. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:retire <queue>` | Retire one build cohort or the whole queue only when nothing depends on it; a refusal changes nothing. | `--build-id <value>`, `--unversioned`, `--expected-revision <revision>`, `--json` |
| `dw task-queue:pause-activities <queue>` | Hold new activity dispatch on one task queue until it is resumed. | `--reason <text>`, `--json` |
| `dw task-queue:resume-activities <queue>` | Resume activity dispatch on a paused task queue. | `--json` |
| `dw task-queue:activity-dispatch <queue>` | Show whether activity dispatch is paused, and who paused or resumed it, when and why. | `--json` |
Expand All @@ -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 <value>` 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
Expand Down
4 changes: 2 additions & 2 deletions docs/polyglot/worker-build-id-rollout.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,6 +428,8 @@ Tokens gehören zum Namespace und zur Filterauswahl. Beginnen Sie nach einer Fil
| `dw task-queue:build-ids <queue>` | Kohortenzustand je Build-ID und Rollout-Status einer Warteschlange untersuchen. | `--json` |
| `dw task-queue:drain <queue>` | Build-ID-Kohorte als auslaufend markieren, damit sie keine neuen Tasks übernimmt. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:resume <queue>` | Frühere Leerung aufheben, sodass die Kohorte wieder neue Tasks übernimmt. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:retirement <queue>` | Zeigt, was die Stilllegung einer Build-Kohorte oder der ganzen Queue noch blockiert, mit Anzahlen, Beispielen und Wiederherstellungsschritten. Nur lesend. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:retire <queue>` | Legt eine Build-Kohorte oder die ganze Queue nur still, wenn nichts mehr davon abhängt; eine Ablehnung ändert nichts. | `--build-id <value>`, `--unversioned`, `--expected-revision <revision>`, `--json` |
| `dw task-queue:pause-activities <queue>` | Neue Activity-Zuteilung auf einer Task-Warteschlange anhalten, bis sie fortgesetzt wird. | `--reason <text>`, `--json` |
| `dw task-queue:resume-activities <queue>` | Activity-Zuteilung auf einer angehaltenen Task-Warteschlange fortsetzen. | `--json` |
| `dw task-queue:activity-dispatch <queue>` | Anzeigen, ob die Activity-Zuteilung angehalten ist und wer sie wann und warum angehalten oder fortgesetzt hat. | `--json` |
Expand All @@ -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 <value>` 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,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions i18n/de/source-hashes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -308,6 +308,8 @@ Los tokens pertenecen al espacio de nombres y a la selección de filtros. Empiec
| `dw task-queue:build-ids <queue>` | Inspeccionar estado de cohortes por build id y despliegue de una cola. | `--json` |
| `dw task-queue:drain <queue>` | Marcar una cohorte como drenando para que deje de reclamar tareas nuevas. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:resume <queue>` | Borrar un drenaje anterior para volver a reclamar tareas. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:retirement <queue>` | 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 <value>`, `--unversioned`, `--json` |
| `dw task-queue:retire <queue>` | Retira una cohorte de compilación o toda la cola solo cuando nada depende de ella; un rechazo no cambia nada. | `--build-id <value>`, `--unversioned`, `--expected-revision <revision>`, `--json` |
| `dw task-queue:pause-activities <queue>` | Retener el despacho de nuevas actividades en una cola de tareas hasta reanudarlo. | `--reason <text>`, `--json` |
| `dw task-queue:resume-activities <queue>` | Reanudar el despacho de actividades en una cola de tareas pausada. | `--json` |
| `dw task-queue:activity-dispatch <queue>` | Mostrar si el despacho de actividades está pausado, y quién lo pausó o reanudó, cuándo y por qué. | `--json` |
Expand All @@ -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 <value>` 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 <value>` 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
4 changes: 2 additions & 2 deletions i18n/es/source-hashes.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,8 @@ Les jetons appartiennent à l’espace de noms et à la sélection de filtres. R
| `dw task-queue:build-ids <queue>` | Inspecter l'état des cohortes par build-id et du déploiement d'une file. | `--json` |
| `dw task-queue:drain <queue>` | Marquer une cohorte build-id en drainage pour arrêter les nouvelles prises de tâches. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:resume <queue>` | Effacer un drainage antérieur pour reprendre les nouvelles prises de tâches. | `--build-id <value>`, `--unversioned`, `--json` |
| `dw task-queue:retirement <queue>` | 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 <value>`, `--unversioned`, `--json` |
| `dw task-queue:retire <queue>` | Retire une cohorte de build ou toute la file uniquement quand plus rien n'en dépend ; un refus ne change rien. | `--build-id <value>`, `--unversioned`, `--expected-revision <revision>`, `--json` |
| `dw task-queue:pause-activities <queue>` | Suspendre la distribution des nouvelles activités sur une file de tâches jusqu'à sa reprise. | `--reason <text>`, `--json` |
| `dw task-queue:resume-activities <queue>` | Reprendre la distribution des activités sur une file de tâches suspendue. | `--json` |
| `dw task-queue:activity-dispatch <queue>` | Indiquer si la distribution des activités est suspendue, et qui l'a suspendue ou reprise, quand et pourquoi. | `--json` |
Expand All @@ -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 <value>` 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
Loading
Loading