Forget a completed job to free up its resources from the server. :param job: Submitted job (or job ID) that will be forgotten.
(self, job: HasJobId)
| 109 | return result[job.id] |
| 110 | |
| 111 | def forget(self, job: HasJobId): |
| 112 | """ |
| 113 | Forget a completed job to free up its resources from the server. |
| 114 | |
| 115 | :param job: Submitted job (or job ID) that will be forgotten. |
| 116 | """ |
| 117 | job_id = get_job_id(job) |
| 118 | self.connection.forget_job(job_id) |
| 119 | logging.info(f"Forgotten job {job_id}") |
| 120 | |
| 121 | |
| 122 | def create_progress_callback(): |