fermyon / spin-trigger-command

WIP Command Trigger for Spin
Apache License 2.0
4 stars 13 forks source link

Spin Command trigger should not terminate host when multiple triggers are defined #21

Open ThorstenHans opened 5 months ago

ThorstenHans commented 5 months ago

I created a Spin App with two triggers:

# ...

[[trigger.http]]
route = "/..."
component = "api"

[[trigger.command]]
component = "cleanup"

# ...

Actual Behavior

Upon starting the app with spin up, the cleanup component is invoked. Once the component finished processing, the spin up process is terminated.

Expected Behavior

The spin up host process should stay alive once the cleanup component has finished processing

karthik2804 commented 5 months ago

This is more the behavior of spin itself and the trigger plays no part in it. ref: https://github.com/fermyon/spin/pull/2419 also https://github.com/fermyon/spin-trigger-command/issues/7#issuecomment-2035572411