stackstorm action-ActionRunner

ActionRunner
ActionRunner是Action的执行环境, Action Runner实际上就是一系列的工作进程,ActionRunner根据StackStorm调度来进行执行Action,可以通过命令查询到进程:

# st2ctl status
##### st2 components status #####
st2actionrunner PID: 36192
st2actionrunner PID: 36194
st2api PID: 39436
st2api PID: 39443
st2stream PID: 36236
st2auth PID: 36243
st2workflowengine PID: 36294
st2scheduler PID: 36301

ActionRunner
StackStorm支持不同类型的执行方式,比如Shell脚本,Python脚本或者HTTP调用等等,这些是以插件的形式存在的,StackStorm内置了基本的一些Action Runner,如下表所示。除了StackStorm的内置类型ActionRunner,当然也可以自定义ActionRunner。
local-shell-cmd
This is the local runner. This runner executes a Linux command on the same host where StackStorm components are running.
local-shell-script
This is the local runner. Actions are implemented as scripts. They are executed on the same hosts where StackStorm components are running.
remote-shell-cmd
This is a remote runner. This runner executes a Linux command on one or more remote hosts provided by the user.
remote-shell-script
This is a remote runner. Actions are implemented as scripts. They run on one or more remote hosts provided by the user.
python-script
This is a Python runner. Actions are implemented as Python classes with arun method. They run locally on the same machine where StackStorm components are running.
http-request
HTTP client which performs HTTP requests for running HTTP actions.
action-chain
This runner supports executing simple linear work-flows.
mistral-v2
Those runners are built on top of the Mistral OpenStack project and support executing complex work-flows.
cloudslang
This runner is built on top of the CloudSlang project and supports executing complex workflows.
inquirer
This runner provides the core logic of the :doc:Inquiries </inquiries> feature.

 

posted @ 2022-08-15 00:18  Sky-wings  阅读(58)  评论(0编辑  收藏  举报