mirror of
https://github.com/karma-riuk/crab-webapp.git
synced 2025-07-05 14:18:12 +02:00
moved the creation of the thread to the subject
instead of the request handler
This commit is contained in:
@ -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(
|
||||
{
|
||||
|
Reference in New Issue
Block a user