You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openwhisk.apache.org by al...@apache.org on 2020/04/14 08:31:38 UTC
[openwhisk-wskdebug] 01/01: ignore 503 errors with activation db
agent
This is an automated email from the ASF dual-hosted git repository.
alexkli pushed a commit to branch activation-db-503
in repository https://gitbox.apache.org/repos/asf/openwhisk-wskdebug.git
commit dd179049d73a88b8b43b895d1b242ef7df314ec2
Author: Alexander Klimetschek <ak...@adobe.com>
AuthorDate: Tue Apr 14 01:31:05 2020 -0700
ignore 503 errors with activation db agent
---
src/agentmgr.js | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/src/agentmgr.js b/src/agentmgr.js
index 3275b72..7c5ebf0 100644
--- a/src/agentmgr.js
+++ b/src/agentmgr.js
@@ -378,6 +378,10 @@ class AgentMgr {
// 43 => graceful shutdown (for unit tests)
console.log("Graceful shutdown requested by agent (only for unit tests)");
return null;
+ } else if (e.statusCode === 503 && !this.concurrency) {
+ console.warn("Server responded with 503 while looking for new activation records. Consider using --ngrok option.")
+ // can be server is overloaded with activation list requests, wait a bit extra and retry
+ sleep(1000);
} else {
// otherwise log error and abort
console.error();