Skip to content

Introduce ScriptTrigger & CommandsTrigger for the Ruby plugin #321

Description

@fdelbrayelle

Feature description

Take inspiration from what has been done for Shell sub plugin

Activity

  1. added
    area/plugin
    good first issue
    on Jan 20, 2026
  2. self-assigned this
    on Mar 16, 2026
  3. Pradumnasaraf commented on May 26, 2026

    @Pradumnasaraf
    Member

    Both io.kestra.plugin.scripts.ruby.ScriptTrigger and io.kestra.plugin.scripts.ruby.CommandsTrigger are broken.

    In both cases the script or command runs and exits non-zero, but no execution is created. The scheduler immediately logs:
    No execution found, schedule is blocked since ...

    The trigger never recovers. Every later poll repeats the same warning.

    Repro flow: ScriptTrigger:

    id: ruby_script_trigger
    namespace: qa.triggers
    
    tasks:
      - id: log
        type: io.kestra.plugin.core.log.Log
        message: "ruby ScriptTrigger fired: exitCode={{ trigger.exitCode }} condition={{ trigger.condition }}"
    
    triggers:
      - id: ruby_script_fail
        type: io.kestra.plugin.scripts.ruby.ScriptTrigger
        interval: PT10S
        exitCondition: "exit 1"
        edge: true
        containerImage: ruby:3.3-slim
        script: |
          raise "boom"

    Repro flow: CommandsTrigger:

    id: ruby_commands_trigger
    namespace: qa.triggers
    
    tasks:
      - id: log
        type: io.kestra.plugin.core.log.Log
        message: "ruby CommandsTrigger fired: exitCode={{ trigger.exitCode }} condition={{ trigger.condition }}"
    
    triggers:
      - id: ruby_commands_fail
        type: io.kestra.plugin.scripts.ruby.CommandsTrigger
        interval: PT10S
        exitCondition: "exit 1"
        edge: true
        containerImage: ruby:3.3-slim
        commands:
          - ruby -e "raise 'boom'"

    Re-opening this issue.

  4. added a commit that references this issue on Jun 5, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area/plugingood first issue

Fields

Stage

Done

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions