MCPcopy Create free account
hub / github.com/StackStorm/st2 / get_runner

Function get_runner

st2common/st2common/runners/base.py:65–82  ·  view source on GitHub ↗

Load the module and return an instance of the runner.

(name, config=None)

Source from the content-addressed store, hash-verified

63
64
65def get_runner(name, config=None):
66 """
67 Load the module and return an instance of the runner.
68 """
69 LOG.debug("Runner loading Python module: %s", name)
70
71 module = get_runner_module(name=name)
72
73 LOG.debug("Instance of runner module: %s", module)
74
75 if config:
76 runner_kwargs = {"config": config}
77 else:
78 runner_kwargs = {}
79
80 runner = module.get_runner(**runner_kwargs)
81 LOG.debug("Instance of runner: %s", runner)
82 return runner
83
84
85def get_runner_module(name):

Callers 5

_get_runnerMethod · 0.90

Calls 1

get_runner_moduleFunction · 0.85