moved the creation of the thread to the subject

instead of the request handler
This commit is contained in:
Karma Riuk
2025-05-18 17:59:02 +02:00
parent 49b2606a53
commit 65f9cd8d61
2 changed files with 13 additions and 5 deletions

View File

@ -99,8 +99,7 @@ def submit_refinement():
socket2observer[sid] = obs
subject.registerObserver(obs)
t = Thread(target=subject.launch_task, args=(validated,), daemon=True)
t.start()
subject.launch_task(validated)
url = url_for(f".status", id=process_id, _external=True)
return jsonify(
{