wei.engine

Engine Class and associated helpers and data

Classes

Engine()

Handles scheduling workflows and executing steps on the workcell.

class wei.engine.Engine

Handles scheduling workflows and executing steps on the workcell. Pops incoming workflows off a redis-based queue and executes them.

__init__() None

Initialize the scheduler.

spin() None

Continuously loop, updating module states every Config.update_interval seconds. If the state of the workcell has changed, update the active modules and run the scheduler.

start_engine_thread()

Spins the engine in its own thread

wait_for_server()

Checks that the server is up before starting the engine.