Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Terminate entire application after one time timer executed #140

Open
lwlwlwlw opened this issue Oct 24, 2017 · 2 comments
Open

Terminate entire application after one time timer executed #140

lwlwlwlw opened this issue Oct 24, 2017 · 2 comments

Comments

@lwlwlwlw
Copy link

For a flogo application contains timer(repeating=false) trigger, it did run as expected but application itself does not exit after all activities executed, is it possible to terminate the entire application automatically after everything is done, rather than keep running like a daemon?

Thanks.

D:\dev\go\src\github.com\lwlwlwlw\flogo-project\once and replay\bin>"once and replay.exe"
2017-10-24 11:23:15.877 INFO [engine] - Engine: Starting...
2017-10-24 11:23:15.887 INFO [engine] - Engine: Starting Services...
2017-10-24 11:23:15.887 INFO [engine] - Engine: Started Services
2017-10-24 11:23:15.887 INFO [timer-trigger] - Scheduling a run one time job
2017-10-24 11:23:15.887 WARN [engine] - Trigger data not applied to context
2017-10-24 11:23:15.887 INFO [engine] - In Flow Run uri: 'f_1'
2017-10-24 11:23:15.887 INFO [engine] - FlowInstance Flow: &{tibco-simple 0xa31280 map[1:0xa31280]}
2017-10-24 11:23:15.887 INFO [activity-tibco-log] -
2017-10-24 11:23:15.887 INFO [engine] - Trigger [timer] started
2017-10-24 11:23:15.888 INFO [engine] - Engine: Started
2017-10-24 11:23:15.888 INFO [engine] - Flow [7157d0ba79842406350e482cc79889c2] Completed
******application is still running here ******

@mellistibco
Copy link
Collaborator

It is possible that the app has other flows & triggers that cannot be shutdown. @fm-tibco perhaps an activity that could trigger a graceful shutdown?

@mellistibco
Copy link
Collaborator

@lwlwlwlw another option would be to use the CLI trigger, that would enable your app to run once and return when finished

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants