fixup: missed self.

This commit is contained in:
tcely 2025-03-26 01:13:28 -04:00 committed by GitHub
parent 9c110644b8
commit b50709aef1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -216,7 +216,7 @@ class Task(models.Model):
""" """
Check if the locked_by process is still running. Check if the locked_by process is still running.
""" """
if self in objects.locked(timezone.now()) and self.locked_by: if self in self.objects.locked(timezone.now()) and self.locked_by:
pid, nodename = self.locked_by.split('/', 1) pid, nodename = self.locked_by.split('/', 1)
# locked by a process on this node? # locked by a process on this node?
if nodename != self.nodename: if nodename != self.nodename: