Shotstash
API referenceGraphQL referenceMutations

Revoke Worker

Revokes a worker: its token stops working and its name cannot register again. Null when there is no such worker. Needs instance.configure.

Revokes a worker: its token stops working and its name cannot register again. Null when there is no such worker. Needs instance.configure.

Arguments

id*ID!

Worker id.

Returns

PipelineWorker
  1. returns

A registered processing worker (one per name).

id*ID!

Unique id.

name*String!

Worker name from its manifest.

version*String!

Worker version from its manifest.

kinds*[String!]!

Job kinds the worker serves.

lastSeen*DateTime!

When the worker last checked in.

revokedAt?DateTime

When the worker was revoked, null while allowed.

live*Boolean!

Seen within the lease and not revoked.

createdAt*DateTime!

When the worker first registered.

mutation RevokeWorker($id: ID!) {  revokeWorker(id: $id) {    id    name    version    kinds    lastSeen    revokedAt    live    createdAt  }}