fix check

This commit is contained in:
Matthias Mair 2022-05-16 18:34:02 +02:00
parent 79b4b23a07
commit 07711b8e74

View File

@ -83,7 +83,7 @@ def offload_task(taskname, *args, force_sync=False, **kwargs):
logger.warning(f"WARNING: '{taskname}' not started - Function not found")
else:
if isinstance(taskname, function):
if callable(taskname):
# function was passed - use that
_func = taskname
else: