Bug fix for task comparison (#11993)

This commit is contained in:
Oliver 2026-05-24 00:18:56 +10:00 committed by GitHub
parent 27ca0836e7
commit a1ed5bcf94
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ def check_existing_task(taskname, group: str, *args, **kwargs) -> Optional[str]:
# Iterate through all available tasks, with the most recent first # Iterate through all available tasks, with the most recent first
for task in OrmQ.objects.all().order_by('-id'): for task in OrmQ.objects.all().order_by('-id'):
if task.func() != taskname and task.task['func'] != taskname: if task.func() != taskname and task.task.get('func') != taskname:
# Task does not match # Task does not match
continue continue