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

Function register_runners

st2common/st2common/content/bootstrap.py:222–245  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

220
221
222def register_runners():
223 # Register runners
224 registered_count = 0
225 fail_on_failure = cfg.CONF.register.fail_on_failure
226
227 # 1. Register runner types
228 try:
229 LOG.info("=========================================================")
230 LOG.info("############## Registering runners ######################")
231 LOG.info("=========================================================")
232 with Timer(key="st2.register.runners"):
233 registered_count = runners_registrar.register_runners(
234 fail_on_failure=fail_on_failure, experimental=False
235 )
236 except Exception as error:
237 exc_info = not fail_on_failure
238
239 # TODO: Narrow exception window
240 LOG.warning("Failed to register runners: %s", error, exc_info=exc_info)
241
242 if fail_on_failure:
243 raise error
244
245 LOG.info("Registered %s runners.", registered_count)
246
247
248def register_actions():

Callers 1

register_contentFunction · 0.70

Calls 1

TimerClass · 0.90

Tested by

no test coverage detected