mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
worker will not run in debug mode
This commit is contained in:
parent
5a2bfaaf19
commit
a28b1e97cc
@ -68,7 +68,7 @@ def offload_task(taskname, *args, force_sync=False, **kwargs):
|
||||
import importlib
|
||||
from InvenTree.status import is_worker_running
|
||||
|
||||
if is_worker_running() and not force_sync:
|
||||
if is_worker_running() and not force_sync: # pragma: no cover
|
||||
# Running as asynchronous task
|
||||
try:
|
||||
task = AsyncTask(taskname, *args, **kwargs)
|
||||
|
Loading…
Reference in New Issue
Block a user