How am I supposed to kill an individual process here?

Hello!
My code: https://replit.com/@BillyHornets/Tracker#backEnd.py
So essentially, in the 51th line of the “backEnd.py” file, it is a method which creates processes via multi-processing. These processes are infinite loops. I want to be able to terminate each process with a discord command. However, the terminate() method built into multi-processing requires the actual variable of the process (if you don’t get what I mean, in the 114th line of the “backEnd.py” file, that’s what I mean as the variable of the process) to be able to kill any of the processes. So how am I supposed to kill each process?

Surely if the API requires you to pass information about the processes it created earlier, it also provides a way to retrieve that information or it emits it during creation and you just have to store it.

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.