jina.drivers.dump

class jina.drivers.dump.DumpDriver(executor=None, *args, **kwargs)[source]

Bases: jina.drivers.BaseExecutableDriver

A Driver that calls the dump method of the Executor

Parameters
  • executor (Optional[str]) – the executor to which we attach the driver

  • args – passed to super().__init__

  • kwargs – passed to super().__init__

Initialize a BaseExecutableDriver

Parameters
  • executor (Optional[str]) – the name of the sub-executor, only necessary when jina.executors.compound.CompoundExecutor is used

  • method – the function name of the executor that the driver feeds to

  • strict_method_args – if set, then the input args of executor.method must be valid Document attributes

  • args – additional positional arguments which are just used for the parent initialization

  • kwargs – additional key value arguments which are just used for the parent initialization

runtime: Optional[ZEDRuntime]