Python MQI: Iterating through prolog_threads for continuity

I’ve wrapped swiplserver MQI into a FastAPI app.
I want to create prolog threads on demand, and then keep those threads running until stopped.
Is there an elegant solution to find(thread_pid) anywhere for calls subsequent to start?

1 Like