Update app.py
Browse files
app.py
CHANGED
@@ -60,7 +60,7 @@ def run_graph(input_message, history, user_details):
|
|
60 |
q = queue.Queue()
|
61 |
thread = threading.Thread(target=invoke_workflow, args=(q,))
|
62 |
thread.start()
|
63 |
-
thread.join(timeout=
|
64 |
|
65 |
if thread.is_alive():
|
66 |
logger.error("Workflow timed out.")
|
|
|
60 |
q = queue.Queue()
|
61 |
thread = threading.Thread(target=invoke_workflow, args=(q,))
|
62 |
thread.start()
|
63 |
+
thread.join(timeout=300) # Wait for 30 seconds
|
64 |
|
65 |
if thread.is_alive():
|
66 |
logger.error("Workflow timed out.")
|