jqueue: Update message for cancelling running job
authorMichael Hanselmann <hansmi@google.com>
Fri, 31 Jul 2009 12:55:45 +0000 (14:55 +0200)
committerMichael Hanselmann <hansmi@google.com>
Mon, 3 Aug 2009 09:20:01 +0000 (11:20 +0200)
Signed-off-by: Michael Hanselmann <hansmi@google.com>
Reviewed-by: Iustin Pop <iustin@google.com>

lib/jqueue.py

index 20fa1c7..ff903ea 100644 (file)
@@ -1166,8 +1166,8 @@ class JobQueue(object):
 
     if job_status not in (constants.JOB_STATUS_QUEUED,
                           constants.JOB_STATUS_WAITLOCK):
-      logging.debug("Job %s is no longer in the queue", job.id)
-      return (False, "Job %s is no longer in the queue" % job.id)
+      logging.debug("Job %s is no longer waiting in the queue", job.id)
+      return (False, "Job %s is no longer waiting in the queue" % job.id)
 
     if job_status == constants.JOB_STATUS_QUEUED:
       self.CancelJobUnlocked(job)