We have an API endpoint that starts a thread, and another endpoint to check the status of the thread (based on a thread ID returned by the first API call). We use the threading