dont run cron in chat worker in localhost

pull/199/head
Aevann 2023-09-14 01:37:52 +03:00
parent 4cd668c62c
commit ee990aeaec
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ if FEATURES['PING_GROUPS']:
if IS_LOCALHOST:
from sys import argv
if "cron" not in argv:
if "cron" not in argv and "load_chat" not in argv:
from files.helpers.cron import cron_fn
print('Starting cron tasks!', flush=True)
gevent.spawn(cron_fn, True, False, False)