-
-
Notifications
You must be signed in to change notification settings - Fork 252
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
Why does "Stop"-Button not work? #624
Comments
Hi @Obaq-web your script ignores SIGTERM command. Stop just sends a signal to a process, that it should finish gracefully. |
Hello bugy, I don't mind stopping my scripts with "kill". However the button stays gray, no matter how long I wait. Any ideas how I can fix this? |
Probably it's a big in a new version. Which version are you using? |
Version: 1.17.1 I'll test this issue with an older version soon. |
I have a similar problem (button stays gray), but in the log I can see that the corresponding kill POST request is sent. However the task is not killed. is false (which is correct for the main task but not for the subtask). Maybe someone knows a workaround for that windows specific problem. |
Hi @Stjefan the button shouldn't stay gray, that's the main issue. The problem with windows is that there is no easy python way to gracefully kill child processes. Could you try to run a script on windows, and kill it via this command: And check, if the children are killed as well |
Hi @Obaq-web @Stjefan, I checked on the latest dev version, and kill button works fine for me. It's grey indeed, but it's clickable. I will change the button's color, to be more verbose, that it's active. |
I changed my machine for a different reason and now its working fine. I will check it on the other machine soon. |
Hi @Stjefan could you share the script with me? Which I could use to reproduce the issue on my machine? |
Sure, it's a very simple script:
I finally found the difference between my two machines. |
Hi @Stjefan thanks a lot By the way, regarding:
So you executed taskkill manually, but the real process didn't stop, right? However, script server considered this one as stopped. Is it correct understanding? |
No taskkill worked as expected and \t killed the subtasks as well. |
Hi @Stjefan
|
Hi @jost-balent sorry, I missed your question :( I'll leave an answer anyway. There are multiple things here:
To sum it up: this could be fixed in script server by sending SIGINT instead of SIGTERM. However, I think this problem is a quite rare use case, and could be worked around by using different docker commands. If there are more people experiencing this problem, please let me know |
Stopping a script with "stop"-button does not stop my scripts. Terminal says "Stopped by User" but the script keeps on running. I see a "kill"-button where before was the "stop"-button. But the "kill"-button is gray an can not be clicked.
Can anyone help?
The text was updated successfully, but these errors were encountered: