Adjust the call to TaskWrapper.schedule

This commit is contained in:
tcely authored and GitHub committed 2025-07-04 22:10:27 -04:00
1 parent 90679802b2
commit 95c6640027
1 file changed
+1 -1
+1 -1
View File
@@ -15,7 +15,7 @@ def set_verbose_name(cls, task_wrapper, /, *args, vn_args=(), vn_fmt=None, **kwa
# support using the delay setting from the decorator
if not ('delay' in kwargs or 'eta' in kwargs):
kwargs['delay'] = task_wrapper.settings.get('delay') or int()
result = task_wrapper.schedule(*args, **kwargs)
result = task_wrapper.schedule(args=args, **kwargs)
try:
task_history = cls.objects.get(task_id=str(result.id))
except cls.DoesNotExist: