wei.routers.workcell_routes

Router for the “workcells”/”wc” endpoints

Functions

clear_runs()

Clears the completed and failed workflows from the workcell :Parameters: None

get_state()

Describes the state of the whole workcell including locations and daemon states

get_workcell()

Describes the workcell's state

get_workcell_config()

Returns the server configuration (including values set/overridden by cli args)

reset_state()

Resets the workcell's state

set_workcell(workcell)

Sets the workcell's state

async wei.routers.workcell_routes.clear_runs() JSONResponse

Clears the completed and failed workflows from the workcell :Parameters: None

Returns:

response (Dict) – the state of the workflows

wei.routers.workcell_routes.get_state() JSONResponse

Describes the state of the whole workcell including locations and daemon states

Parameters:
  • None – Returns

  • ——-

    response: Dict

    the state of the workcell

wei.routers.workcell_routes.get_workcell() Workcell

Describes the workcell’s state

Parameters:
  • None – Returns

  • ——-

    response: Dict

    the definition of the workcell

wei.routers.workcell_routes.get_workcell_config() JSONResponse

Returns the server configuration (including values set/overridden by cli args)

wei.routers.workcell_routes.reset_state() JSONResponse

Resets the workcell’s state

Parameters:
  • None – Returns

  • ——-

    response: Dict

    the state of the workcell

wei.routers.workcell_routes.set_workcell(workcell: Workcell) JSONResponse

Sets the workcell’s state

Parameters:
  • None – Returns

  • ——-

    response: Dict

    the state of the workcell