Skip to content
Snippets Groups Projects
Commit 8f6d6b9d authored by Ian's avatar Ian
Browse files

fix: added hash method to Job

parent cb866fb7
No related branches found
No related tags found
No related merge requests found
...@@ -44,3 +44,7 @@ class Job: ...@@ -44,3 +44,7 @@ class Job:
def cancel(self) -> None: def cancel(self) -> None:
"""Cancel this job""" """Cancel this job"""
maap.cancelJob(self.job_id) 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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment