From 5ce05d73da0389dfcfa2f031730c9853963a495d Mon Sep 17 00:00:00 2001 From: TShapinsky Date: Mon, 19 Feb 2024 13:58:50 -0700 Subject: [PATCH] increase timeout for getting a reply from a run from 6 to 60 seconds --- alfalfa_web/server/api.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/alfalfa_web/server/api.js b/alfalfa_web/server/api.js index 06b3b411..52b6dd10 100644 --- a/alfalfa_web/server/api.js +++ b/alfalfa_web/server/api.js @@ -229,7 +229,7 @@ class AlfalfaAPI { return await this.sendRunMessage(run, "stop"); }; - sendRunMessage = (run, method, data = null, timeout = 6000, pollingInterval = 100) => { + sendRunMessage = (run, method, data = null, timeout = 60000, pollingInterval = 100) => { return new Promise(async (resolve, reject) => { const message_id = uuidv1(); await this.pub.publish(run.ref_id, JSON.stringify({ message_id, method, data }));