From f3723d4707145744cdad0de99d944faec3e12317 Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Thu, 16 Apr 2020 19:25:59 +0100 Subject: [PATCH] Less sleep in inbox queue --- daemon.py | 2 +- inbox.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/daemon.py b/daemon.py index 095a5af3d..3263aa3b7 100644 --- a/daemon.py +++ b/daemon.py @@ -7144,7 +7144,7 @@ def runDaemon(blogsInstance: bool, mediaInstance: bool, httpd.inboxQueue = [] httpd.sendThreads = sendThreads httpd.postLog = [] - httpd.maxQueueLength = 256 + httpd.maxQueueLength = 64 httpd.ocapAlways = ocapAlways httpd.allowDeletion = allowDeletion httpd.lastLoginTime = 0 diff --git a/inbox.py b/inbox.py index 2e3fc1313..430275180 100644 --- a/inbox.py +++ b/inbox.py @@ -2233,7 +2233,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, queueRestoreCtr = 0 while True: - time.sleep(5) + time.sleep(1) # heartbeat to monitor whether the inbox queue is running heartBeatCtr += 5 @@ -2423,7 +2423,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int, if debug: print('DEBUG: Retry ' + str(tries+1) + ' obtaining public key for ' + keyId) - time.sleep(5) + time.sleep(1) if not pubKey: print('Queue: public key could not be obtained from ' + keyId)