mirror of
https://github.com/ziirish/burp-ui.git
synced 2026-05-15 14:16:08 -06:00
force celery tasks scheduling only in celery mode to avoid putting to much pressure on the backend
This commit is contained in:
parent
15be9a6238
commit
a426488c24
1 changed files with 3 additions and 2 deletions
|
|
@ -320,8 +320,9 @@ def create_celery(myapp, warn=True):
|
|||
# may fail in case redis is not running (this can happen while running
|
||||
# the bui-manage script)
|
||||
try:
|
||||
from .tasks import force_scheduling_now
|
||||
force_scheduling_now()
|
||||
if os.getenv('BUI_MODE', '') == 'celery':
|
||||
from .tasks import force_scheduling_now
|
||||
force_scheduling_now()
|
||||
except: # pragma: no cover
|
||||
pass
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue