forked from rDrama/rDrama
dont run cron in chat worker in localhost
parent
4cd668c62c
commit
ee990aeaec
|
@ -53,7 +53,7 @@ if FEATURES['PING_GROUPS']:
|
||||||
|
|
||||||
if IS_LOCALHOST:
|
if IS_LOCALHOST:
|
||||||
from sys import argv
|
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
|
from files.helpers.cron import cron_fn
|
||||||
print('Starting cron tasks!', flush=True)
|
print('Starting cron tasks!', flush=True)
|
||||||
gevent.spawn(cron_fn, True, False, False)
|
gevent.spawn(cron_fn, True, False, False)
|
||||||
|
|
Loading…
Reference in New Issue