Python SDKFeature Clients

Workers Client

Bases: BaseRestClient

The workers client is a client for managing workers programmatically within Hatchet.

Methods:

NameDescription
aio_getGet a worker by its ID.
aio_listList all workers in the tenant determined by the client config.
aio_pausePause a worker by its ID.
aio_unpauseUnpause a worker by its ID.
aio_updateUpdate a worker by its ID.
getGet a worker by its ID.
listList all workers in the tenant determined by the client config.
pausePause a worker by its ID.
unpauseUnpause a worker by its ID.
updateUpdate a worker by its ID.

Functions

aio_get

Get a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to retrieve.required

Returns:

TypeDescription
WorkerThe worker.

aio_list

List all workers in the tenant determined by the client config.

Returns:

TypeDescription
WorkerListA list of workers.

aio_pause

Pause a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to pause.required

Returns:

TypeDescription
WorkerThe paused worker.

aio_unpause

Unpause a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to unpause.required

Returns:

TypeDescription
WorkerThe unpaused worker.

aio_update

Update a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to update.required
optsUpdateWorkerRequestThe update options.required

Returns:

TypeDescription
WorkerThe updated worker.

get

Get a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to retrieve.required

Returns:

TypeDescription
WorkerThe worker.

list

List all workers in the tenant determined by the client config.

Returns:

TypeDescription
WorkerListA list of workers.

pause

Pause a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to pause.required

Returns:

TypeDescription
WorkerThe paused worker.

unpause

Unpause a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to unpause.required

Returns:

TypeDescription
WorkerThe unpaused worker.

update

Update a worker by its ID.

Parameters:

NameTypeDescriptionDefault
worker_idstrThe ID of the worker to update.required
optsUpdateWorkerRequestThe update options.required

Returns:

TypeDescription
WorkerThe updated worker.

Last updated on September 1, 2026

On this page