mirror of https://gitlab.com/bashrc2/epicyon
Less sleep in inbox queue
parent
ec519746e3
commit
f3723d4707
|
@ -7144,7 +7144,7 @@ def runDaemon(blogsInstance: bool, mediaInstance: bool,
|
||||||
httpd.inboxQueue = []
|
httpd.inboxQueue = []
|
||||||
httpd.sendThreads = sendThreads
|
httpd.sendThreads = sendThreads
|
||||||
httpd.postLog = []
|
httpd.postLog = []
|
||||||
httpd.maxQueueLength = 256
|
httpd.maxQueueLength = 64
|
||||||
httpd.ocapAlways = ocapAlways
|
httpd.ocapAlways = ocapAlways
|
||||||
httpd.allowDeletion = allowDeletion
|
httpd.allowDeletion = allowDeletion
|
||||||
httpd.lastLoginTime = 0
|
httpd.lastLoginTime = 0
|
||||||
|
|
4
inbox.py
4
inbox.py
|
@ -2233,7 +2233,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
queueRestoreCtr = 0
|
queueRestoreCtr = 0
|
||||||
|
|
||||||
while True:
|
while True:
|
||||||
time.sleep(5)
|
time.sleep(1)
|
||||||
|
|
||||||
# heartbeat to monitor whether the inbox queue is running
|
# heartbeat to monitor whether the inbox queue is running
|
||||||
heartBeatCtr += 5
|
heartBeatCtr += 5
|
||||||
|
@ -2423,7 +2423,7 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
|
||||||
if debug:
|
if debug:
|
||||||
print('DEBUG: Retry ' + str(tries+1) +
|
print('DEBUG: Retry ' + str(tries+1) +
|
||||||
' obtaining public key for ' + keyId)
|
' obtaining public key for ' + keyId)
|
||||||
time.sleep(5)
|
time.sleep(1)
|
||||||
|
|
||||||
if not pubKey:
|
if not pubKey:
|
||||||
print('Queue: public key could not be obtained from ' + keyId)
|
print('Queue: public key could not be obtained from ' + keyId)
|
||||||
|
|
Loading…
Reference in New Issue