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.
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 全程不用写代码,我用AI程序员写了一个飞机大战
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· 记一次.NET内存居高不下排查解决与启示
· 白话解读 Dapr 1.15:你的「微服务管家」又秀新绝活了
· DeepSeek 开源周回顾「GitHub 热点速览」