diff --git a/maap_utils/Job.py b/maap_utils/Job.py index d304526aad9b7cfa6e7c8a30a7d67b011a71dfd6..e0929c8f3171888196f7450e11ac862fd27ee771 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