首页 > 其他分享 >stackstorm action-ActionRunner

stackstorm action-ActionRunner

时间:2022-08-15 00:28:08浏览次数:47  
标签:remote StackStorm runner PID ActionRunner stackstorm action local

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.

 

标签:remote,StackStorm,runner,PID,ActionRunner,stackstorm,action,local
From: https://www.cnblogs.com/skyzy/p/16586797.html

相关文章

  • stackstorm 变量
    变量全部变量被vars关键词定义在顶部。Tasks任务通过publish关键字发布新的变量所有的变量都被Jinja语法引用。累计的已发布变量都可以在一个ActionChian执行结果的p......
  • stackstorm workflows
    workflowsStackStorm支持两种类型的工作流:ActionChain和Mistral。1)ActionChain是StackStorm内部的不加修饰的工作流运行器。它提供了一个简单的语法来定义了工作......
  • stackstorm rule
    stackstormruleRule是映射Trigger到Action(或者Workflow),即当事件触发后,通过Rule定义的标准(Criteria)进行匹配,当匹配成功将执行Action(或者Workflow)。https://docs.stackst......
  • .Net6 Html.Action无法使用(ViewComponents)
    接触了netcore的小伙伴们已经发现@html.Action()方法官方已经不提供支持了,转而使用 ViewComponents替代了,同时也增加了TagHelper。1.如果想用以前的@Html.Action()......
  • 笔记 【使用事件】制作3D自动开关门(附:3D人物移动和旋转,out输出参数,3D搭建使用的快捷
    【仍在施工ing】小Joe视频链接传送门使用事件制作3D自动开关门(附:3D人物移动和旋转,out输出参数,3D搭建使用的快捷键和Packages,泛型委托Action等)上期视频上期笔记思考i......
  • create GitHub Actions and publish GitHub Actions All In One
    createGitHubActionsandpublishGitHubActionsAllInOnehowtocreateyourownGitHubActionsandpublishitCreateaJavaScriptActionusingTypeScript......
  • Filter 筛选器之 自定义一个启动事务的 TransactionScopeFilter
    如果一个方法内有多个写入操作,比如写入A表,然后用A表的自增id去写入B表,假如A表写入成功,但B表因为某种原因写入失败!(这就导致A表写入了脏数据)这时候我们可以自定义一个F......