Skip to content

Commit

Permalink
Increase timeout for getting a reply from a run from 6 to 60 seconds (#…
Browse files Browse the repository at this point in the history
…479)

increase timeout for getting a reply from a run from 6 to 60 seconds
  • Loading branch information
TShapinsky authored Feb 26, 2024
1 parent a1ea05b commit 1a11a32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion alfalfa_web/server/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -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 }));
Expand Down

0 comments on commit 1a11a32

Please sign in to comment.