From a28b1e97cc9ebb76bb575bf66e8eb06158d5ba28 Mon Sep 17 00:00:00 2001 From: Matthias Date: Sun, 13 Mar 2022 20:44:25 +0100 Subject: [PATCH] worker will not run in debug mode --- InvenTree/InvenTree/tasks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/InvenTree/InvenTree/tasks.py b/InvenTree/InvenTree/tasks.py index 9d4039d4b1..578a303566 100644 --- a/InvenTree/InvenTree/tasks.py +++ b/InvenTree/InvenTree/tasks.py @@ -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)