Regenerate sessions less frequently

main
Bob Mottram 2020-06-24 10:40:17 +01:00
parent 52d1f30b4f
commit d392e0a15d
1 changed files with 2 additions and 2 deletions

View File

@ -2349,8 +2349,8 @@ def runInboxQueue(recentPostsCache: {}, maxRecentPosts: int,
currTime = int(time.time()) currTime = int(time.time())
# recreate the session periodically # recreate the session periodically
if not session or currTime - sessionLastUpdate > 1200: if not session or currTime - sessionLastUpdate > 21600:
print('Creating inbox queue session at 20min interval') print('Regenerating inbox queue session at 6hr interval')
session = createSession(proxyType) session = createSession(proxyType)
if not session: if not session:
continue continue