ahriman.web.views.v1.distributed package
Submodules
ahriman.web.views.v1.distributed.workers module
- class WorkersView(request: None)
Bases:
BaseView
distributed workers view
- DELETE_PERMISSION
(class attribute) delete permissions of self
- Type:
- GET_PERMISSION
(class attribute) get permissions of self
- Type:
- POST_PERMISSION
(class attribute) post permissions of self
- Type:
- async delete() None
unregister worker
- Raises:
HTTPNoContent – on success response
- async get() Response
get workers list
- Returns:
200 with workers list on success
- Return type:
Response
- async post() None
register remote worker
- Raises:
HTTPBadRequest – if bad data is supplied
HTTPNoContent – in case of success response