ewoksserver.app.routes.common.discovery.discover_workflows#
- ewoksserver.app.routes.common.discovery.discover_workflows(settings, modules=None, workflow_extension=None, worker_options=None)[source]#
- Raises:
ModuleNotFoundError – failed importing workflows.
TimeoutError – timeout when asking a remote worker for workflows.
Exception – any other import or remote error.
- Return type:
tuple[list[str],dict[str,str|None]]- Returns:
the discovered workflow identifiers, and a mapping of each identifier to the celery queue it was discovered on (None for local scheduling).
- Parameters:
settings (
EwoksSettings)modules (
list[str] |None)workflow_extension (
str|None)worker_options (
dict|None)