fix cron testing on localhost
parent
47b75483fa
commit
3acea943f9
|
@ -52,7 +52,9 @@ if FEATURES['PING_GROUPS']:
|
||||||
from .groups import *
|
from .groups import *
|
||||||
|
|
||||||
if IS_LOCALHOST:
|
if IS_LOCALHOST:
|
||||||
from files.helpers.cron import cron_fn
|
from sys import argv
|
||||||
print('Starting cron tasks!', flush=True)
|
if "cron" not in argv:
|
||||||
gevent.spawn(cron_fn, True, False)
|
from files.helpers.cron import cron_fn
|
||||||
print('Cron tasks Finished!', flush=True)
|
print('Starting cron tasks!', flush=True)
|
||||||
|
gevent.spawn(cron_fn, True, False)
|
||||||
|
print('Cron tasks Finished!', flush=True)
|
||||||
|
|
Loading…
Reference in New Issue