daemon.stores.peas module

class daemon.stores.peas.PeaStore[source]

Bases: daemon.stores.containers.ContainerStore, daemon.stores.mixin.AiohttpMixin

A Store of Peas spawned as Containers by Daemon

async add_in_partial(uri, params, envs={}, **kwargs)[source]

Sends POST request to partial-daemon to create a Pea/Pod.

Parameters
  • uri (str) – uri of partial-daemon

  • params (Dict) – json payload to be sent

  • envs (Optional[Dict]) – environment variables to be passed into partial pea

  • kwargs – keyword args

Return type

Dict

Returns

response from mini-jinad

async delete_in_partial(uri, **kwargs)[source]

Sends a DELETE request to partial-daemon to terminate a Pea/Pod

Parameters
  • uri – uri of partial-daemon

  • kwargs – keyword args

Return type

Dict

Returns

response from partial-daemon