towhee.engine.operator_runner.runner_base.RunnerBase

class towhee.engine.operator_runner.runner_base.RunnerBase(name: str, index: int, op_name: str, tag: str, hub_op_id: str, op_args: Dict[str, any], readers=None, writer=None)[source]

Bases: ABC

Running instance of op.

The base class provides some function to control status.

Methods

is_end

is_finished

is_idle

join

process

process_step

set_op

set_stop

sleep

slow_down

speed_up

unset_op

Attributes

hub_op_id

msg

op

op_args

op_name

status

tag

__init__(name: str, index: int, op_name: str, tag: str, hub_op_id: str, op_args: Dict[str, any], readers=None, writer=None) None[source]