Last use removed when queue processing moved to luxi in 8c749925678.
Signed-off-by: Brian Foley <[email protected]>
---
lib/jqueue/__init__.py | 22 ----------------------
1 file changed, 22 deletions(-)
diff --git a/lib/jqueue/__init__.py b/lib/jqueue/__init__.py
index 906e37e..d22eac3 100644
--- a/lib/jqueue/__init__.py
+++ b/lib/jqueue/__init__.py
@@ -1559,28 +1559,6 @@ class JobQueue(object):
logging.debug("Writing job %s to %s", job.id, filename)
self._UpdateJobQueueFile(filename, data, replicate)
- def HasJobBeenFinalized(self, job_id):
- """Checks if a job has been finalized.
-
- @type job_id: int
- @param job_id: Job identifier
- @rtype: boolean
- @return: True if the job has been finalized,
- False if the timeout has been reached,
- None if the job doesn't exist
-
- """
- job = self.SafeLoadJobFromDisk(job_id, True, writable=False)
- if job is not None:
- return job.CalcStatus() in constants.JOBS_FINALIZED
- elif cluster.LUClusterDestroy.clusterHasBeenDestroyed:
- # FIXME: The above variable is a temporary workaround until the Python
job
- # queue is completely removed. When removing the job queue, also remove
- # the variable from LUClusterDestroy.
- return True
- else:
- return None
-
def CancelJob(self, job_id):
"""Cancels a job.
--
2.8.0.rc3.226.g39d4020