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

Let scripts run in background #94

Closed
pollier opened this issue Feb 14, 2018 · 4 comments
Closed

Let scripts run in background #94

pollier opened this issue Feb 14, 2018 · 4 comments
Labels

Comments

@pollier
Copy link

pollier commented Feb 14, 2018

Hello,
It would be cool that closing the webui don't stop script execution.

@bugy
Copy link
Owner

bugy commented Feb 14, 2018

Hi @pollier, the problem here is with hanging or interactive scripts. When user closes the UI and script waits for user input, then the process will live forever.

Probably I can add an option to each script, "allow background execution". In this case the user will take responsibility for hanging processes :)

@pollier
Copy link
Author

pollier commented Feb 14, 2018

Would be great with the option,
maybe we can imagine a mechanism like screen which allow to reattach standard input / output too ?

@bugy
Copy link
Owner

bugy commented Feb 14, 2018

Reattaching would be a bit trickier, but still possible (actually at the moment web page supports "reattach", but only without leaving the whole page).

I'll do this option first, and some time later will return back to reattaching feature.

@bugy
Copy link
Owner

bugy commented Feb 26, 2018

New script config option added: kill_on_disconnect (true/false). By default it's true
If set to false, then closing a web page will not affect script execution.

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

No branches or pull requests

2 participants