From 8f6d6b9da7096464b2be630d404dec39f7582e30 Mon Sep 17 00:00:00 2001 From: Ian Grant <ian.conway.grant@gmail.com> Date: Thu, 15 May 2025 16:55:19 -0400 Subject: [PATCH] fix: added hash method to Job --- maap_utils/Job.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maap_utils/Job.py b/maap_utils/Job.py index d304526..e0929c8 100644 --- a/maap_utils/Job.py +++ b/maap_utils/Job.py @@ -44,3 +44,7 @@ class Job: def cancel(self) -> None: """Cancel this job""" maap.cancelJob(self.job_id) + + def __hash__(self) -> int: + """Hash function for the job object""" + return hash(self.job_id) if self.job_id else 0 -- GitLab