mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
added arbitrary args and arbitrary keyword args while executing a function synchronously from offload_task() in inventree.tasks
This commit is contained in:
parent
6ec2801fce
commit
fca15a0439
@ -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():
|
||||
|
Loading…
Reference in New Issue
Block a user