Forums

Code won't stop running

I have gone as far as deleting the program file. It (something) is still running and using up my CPU time.

How are you running the code?

As a Scheduled Task that starts once a day and runs until I manually stop it. The code sleeps ( time.sleep(120) ) the majority of it's running time. Running processes always show 'Nothing running'. Running processes 'Refresh' icon seems to do nothing.

I managed to get it stopped today by adding ( os._exit(0) ) to the code and then saving the file. I suspect that 'Running processes' does not detect that my code is running while it is 'sleeping'.

The running process list on the Consoles page does not show tasks process. The running processes list on the Tasks page does.

I understand now. Thank you.