added arbitrary args and arbitrary keyword args while executing a function synchronously from offload_task() in inventree.tasks

This commit is contained in:
rocheparadox 2021-10-31 11:21:06 +05:30
parent 6ec2801fce
commit fca15a0439

View File

@ -110,7 +110,7 @@ def offload_task(taskname, *args, force_sync=False, **kwargs):
return
# Workers are not running: run it as synchronous task
_func()
_func(*args, **kwargs)
def heartbeat():