We use cookies

We use cookies to ensure you get the best experience on our website. For more information on how we use cookies, please see our cookie policy.

By clicking "Accept", you agree to our use of cookies.
Learn more.

SDK ReferencePython SDKFeature ClientsWorkers

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_updateUpdate a worker by its ID.
getGet a worker by its ID.
listList all workers in the tenant determined by the client config.
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_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.

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.