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 @   Sky-wings  阅读(70)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」
点击右上角即可分享
微信分享提示