worker will not run in debug mode

This commit is contained in:
Matthias 2022-03-13 20:44:25 +01:00
parent 5a2bfaaf19
commit a28b1e97cc
No known key found for this signature in database
GPG Key ID: F50EF5741D33E076

View File

@ -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)