Skip to content

Commit a341e92

Browse files
committed
fix: use standalone over unmanaged
1 parent 3d85ded commit a341e92

File tree

9 files changed

+20
-16
lines changed

9 files changed

+20
-16
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
audience: general
2+
level: patch
3+
---
4+
This fixes the default worker state of a worker not known by worker manager to be `standalone` as opposed to `unmanaged` to be consistent with the rest of the project. This issue was first brought up in v44.16.0

clients/client-go/tcworkermanager/types.go

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

generated/references.json

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

services/web-server/src/graphql/Workers.graphql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type Worker {
6363
lastDateActive: DateTime
6464

6565
# The current state of the worker.
66-
# One of [`requested`, `running`, `stopping`, `stopped`, `unmanaged`].
66+
# One of [`requested`, `running`, `stopping`, `stopped`, `standalone`].
6767
state: String
6868

6969
# The current capacity of the worker.

services/worker-manager/schemas/v1/list-workers-response.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,10 +70,10 @@ properties:
7070
a "stopped" worker is completely stopped. Stopped workers are kept for historical
7171
purposes and are purged when they expire. Note that some providers transition workers
7272
directly from "running" to "stopped".
73-
An "unmanaged" worker is a worker that is not managed by worker-manager, these workers
73+
An "standalone" worker is a worker that is not managed by worker-manager, these workers
7474
are only known by the queue.
7575
type: string
76-
enum: ["requested", "running", "stopping", "stopped", "unmanaged"]
76+
enum: ["requested", "running", "stopping", "stopped", "standalone"]
7777
capacity:
7878
title: Worker Capacity
7979
description: |

services/worker-manager/schemas/v1/worker-response.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ properties:
123123
a "stopped" worker is completely stopped. Stopped workers are kept for historical
124124
purposes and are purged when they expire. Note that some providers transition workers
125125
directly from "running" to "stopped".
126-
An "unmanaged" worker is a worker that is not managed by worker-manager, these workers
126+
An "standalone" worker is a worker that is not managed by worker-manager, these workers
127127
are only known by the queue.
128128
type: string
129-
enum: ["requested", "running", "stopping", "stopped", "unmanaged"]
129+
enum: ["requested", "running", "stopping", "stopped", "standalone"]
130130
capacity:
131131
title: Worker Capacity
132132
description: |

services/worker-manager/src/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -902,7 +902,7 @@ builder.declare({
902902
firstClaim: worker.firstClaim?.toJSON(),
903903
lastDateActive: worker.lastDateActive?.toJSON(),
904904
workerPoolId: worker.workerPoolId,
905-
state: worker.state || 'unmanaged',
905+
state: worker.state || 'standalone',
906906
capacity: worker.capacity || 0,
907907
providerId: worker.providerId || 'none',
908908
};

services/worker-manager/src/data.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,7 @@ class Worker {
425425
providerId: this.providerId || 'none',
426426
created: this.created?.toJSON(),
427427
expires: this.expires?.toJSON(),
428-
state: this.state || 'unmanaged',
428+
state: this.state || 'standalone',
429429
capacity: this.capacity || 0,
430430
lastModified: this.lastModified?.toJSON(),
431431
lastChecked: this.lastChecked?.toJSON(),

ui/src/utils/labels.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default {
1111
REQUESTED: 'default',
1212
STOPPING: 'warning',
1313
STOPPED: 'error',
14-
UNMANAGED: 'info',
14+
STANDALONE: 'info',
1515
// deprecated, but still supported for old tasks
1616
SUPERSEDED: 'default',
1717
CLAIM_EXPIRED: 'info',

0 commit comments

Comments
 (0)