Skip to content

Introduce ScriptTrigger & CommandsTrigger for the Go plugin #319

Description

@fdelbrayelle

Feature description

Take inspiration from what has been done for Shell sub plugin

Activity

  1. added
    area/plugin
    on Jan 20, 2026
  2. added
    good first issue
    on Jan 20, 2026
  3. rishi-jat commented on Mar 3, 2026

    @rishi-jat
    Contributor

    please assign this issue to me @fdelbrayelle

  4. MilosPaunovic commented on Mar 9, 2026

    @MilosPaunovic
    Member

    Hey @rishi-jat, are there any updates on this?

  5. rishi-jat commented on Mar 9, 2026

    @rishi-jat
    Contributor

    Yep - made progress, but it is slow because my collage exam running. You will see PR for all assigned issue to me on 14-15 March. Thanks!

  6. MilosPaunovic commented on Mar 9, 2026

    @MilosPaunovic
    Member

    Alright, thanks for the updates.
    And best of luck with the exams! 🤞🏻

  7. rishi-jat commented on Mar 15, 2026

    @rishi-jat
    Contributor

    PR is on the way - you will see the PR today.

  8. rishi-jat commented on Mar 16, 2026

    @rishi-jat
    Contributor

    @MilosPaunovic @fdelbrayelle I have made the PR - #335 please have a look ;)

  9. Pradumnasaraf commented on May 26, 2026

    @Pradumnasaraf
    Member

    The io.kestra.plugin.scripts.go.ScriptTrigger is broken. The matching CommandsTrigger for Go works fine, so the issue is specific to ScriptTrigger.

    The trigger runs, the script exits 1, 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:

    id: go_script_trigger
    namespace: qa.triggers
    
    tasks:
      - id: log
        type: io.kestra.plugin.core.log.Log
        message: "go ScriptTrigger fired: exitCode={{ trigger.exitCode }} condition={{ trigger.condition }}"
    
    triggers:
      - id: go_script_fail
        type: io.kestra.plugin.scripts.go.ScriptTrigger
        interval: PT10S
        exitCondition: "exit 1"
        edge: true
        containerImage: golang:1.22
        script: |
          package main
          import "os"
          func main() { os.Exit(1) }

    Re-opening this issue.

  10. self-assigned this
    on May 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

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