Closing the File [.exe] ForceFully #152
-
I am running the application when i try to update it, the terminal which pops up after downloading the new .exe showing me the following error:
Is there any way to delete this opened instance of the application forcefully just by making changes in tufup framework itself [in my environment]. I have seen some batch script that is written overthere, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Hi @ritishbhardwaj, this is not an error. The application is already closing at this point, because tufup/src/tufup/utils/platform_specific.py Line 234 in 0283ebb It's just that the batch script, which runs in a separate process, has to wait for the application process to finish closing. Sometimes this takes a bit longer, causing the copy to fail, so what you're seeing is a simple retry mechanism with a short timeout. Checking if the app's process has stopped, properly and reliably, can become quite complicated, so, instead, we just retry if the copy fails. If you want to change this, you go all out by specifying a custom batch template, as described in #48. However, you're on your own there. |
Beta Was this translation helpful? Give feedback.
Hi @ritishbhardwaj, this is not an error.
The application is already closing at this point, because
sys.exit()
has been called:tufup/src/tufup/utils/platform_specific.py
Line 234 in 0283ebb
It's just that the batch script, which runs in a separate process, has to wait for the application process to finish closing. Sometimes this takes a bit longer, causing the copy to fail, so what you're seeing is a simple retry mechanism with a short timeout.
Checking if the app's process has stopped, properly and reliably, can become quite complicated, so, instead, we just retry if the copy fails.
If you want to change this, you go all out by specifying a custom batch tem…