daemon.stores.partial module

class daemon.stores.partial.PartialStore[source]

Bases: object

A store spawned inside mini-jinad container

add(*args, **kwargs)[source]

Add a new element to the store. This method needs to be overridden by the subclass

Return type

PartialStoreItem

update(*args, **kwargs)[source]

Updates the element to the store. This method needs to be overridden by the subclass

Return type

PartialStoreItem

delete()[source]

Terminates the object in the store & stops the server

Return type

None

class daemon.stores.partial.PartialPeaStore[source]

Bases: daemon.stores.partial.PartialStore

A Pea store spawned inside mini-jinad container

peapod_cls

alias of jina.peapods.peas.BasePea

add(args, **kwargs)[source]

Starts a Pea in mini-jinad

Parameters
  • args (Namespace) – namespace args for the pea/pod

  • kwargs – keyword args

Return type

PartialStoreItem

Returns

Item describing the Pea object

class daemon.stores.partial.PartialPodStore[source]

Bases: daemon.stores.partial.PartialPeaStore

A Pod store spawned inside mini-jinad container

peapod_cls

alias of jina.peapods.pods.Pod

class daemon.stores.partial.PartialFlowStore[source]

Bases: daemon.stores.partial.PartialStore

A Flow store spawned inside mini-jinad container

add(args, port_expose, **kwargs)[source]

Starts a Flow in mini-jinad.

Parameters
  • args (Namespace) – namespace args for the flow

  • port_expose (int) – port expose for the Flow

  • kwargs – keyword args

Return type

PartialStoreItem

Returns

Item describing the Flow object

update(kind, dump_path, pod_name, shards, **kwargs)[source]

Runs an update operation on the Flow. :type kind: UpdateOperation :param kind: type of update command to execute (dump/rolling_update) :type dump_path: str :param dump_path: the path to which to dump on disk :type pod_name: str :param pod_name: pod to target with the dump request :type shards: int :param shards: nr of shards to dump :param kwargs: keyword args :rtype: PartialFlowItem :return: Item describing the Flow object