Lines Matching refs:Status
50 _notify_email_statuses = [status for status in
52 if status]
389 _fields = ('id', 'hostname', 'locked', 'synch_id', 'status',
396 def set_status(self,status):
397 logging.info('%s -> %s', self.hostname, status)
398 self.update_field('status',status)
400 logging.debug('Host Set Status Complete')
466 _fields = ('id', 'job_id', 'host_id', 'status', 'meta_host',
593 return ("%s and host: %s has status:%s%s" %
594 (self.get_dbg_str(), self._get_hostname(), self.status,
606 e.g. 'status'
620 def set_status(self, status):
621 logging.info("%s -> %s", self, status)
623 self.update_field('status', status)
627 active = (status in models.HostQueueEntry.ACTIVE_STATUSES)
628 complete = (status in models.HostQueueEntry.COMPLETE_STATUSES)
644 self._on_complete(status)
652 should_email_status = (status.lower() in _notify_email_statuses or
655 self._email_on_status(status)
656 logging.debug('HQE Set Status Complete')
657 self.record_state('hqe_status', 'status', status)
661 def _on_complete(self, status):
662 if status is not models.HostQueueEntry.Status.ABORTED:
676 def _get_status_email_contents(self, status, summary=None, hostname=None):
678 Gather info for the status notification e-mails.
684 @param status: Job status text. Mandatory.
692 subject = ('Autotest | Job ID: %s "%s" | Status: %s ' %
693 (self.job.id, self.job.name, status))
698 if status not in ["1 Failed", "Failed"]:
707 body += "Status: %s\n" % status
724 def _email_on_status(self, status):
726 subject, body = self._get_status_email_contents(status, None, hostname)
737 summary.append("Host: %s Status: %s" %
739 queue_entry.status))
744 status = ', '.join('%d %s' % (count, status) for status, count
747 subject, body = self._get_status_email_contents(status, summary, None)
752 logging.info("%s/%s/%s (job %s, entry %s) scheduled on %s, status=%s",
754 self.job.id, self.id, self.host.hostname, self.status)
765 self.set_status(models.HostQueueEntry.Status.QUEUED)
810 self.set_status(models.HostQueueEntry.Status.PENDING)
811 self.host.set_status(models.Host.Status.PENDING)
819 self.status == models.HostQueueEntry.Status.PENDING):
828 Status = models.HostQueueEntry.Status
829 if self.status in (Status.GATHERING, Status.PARSING, Status.ARCHIVING):
831 # with status "Aborted" and take care of the host
834 if self.status in (Status.STARTING, Status.PENDING, Status.RUNNING,
835 Status.WAITING):
836 # If hqe is in any of these status, it should not have any
841 # status, in which the agent has only a HostlessQueueTask
846 # If hqe is still in STARTING status, it may not have assigned a
849 self.host.set_status(models.Host.Status.READY)
850 elif (self.status == Status.VERIFYING or
851 self.status == Status.RESETTING):
856 elif self.status == Status.PROVISIONING:
862 self.set_status(Status.ABORTED)
884 'status!="Queued";')
886 'status="Aborted" WHERE id=%s;')
947 # all status='Pending' atomic group HQEs incase a delay was running when the
1065 AND s.status_idx = t.status
1088 status_header = ("Test Name", "Status", "Reason")
1119 def set_status(self, status, update_queues=False):
1120 self.update_field('status',status)
1124 queue_entry.set_status(status)
1134 have entered the Status.STARTING state or beyond.
1142 started_statuses = (models.HostQueueEntry.Status.STARTING,
1143 models.HostQueueEntry.Status.RUNNING,
1144 models.HostQueueEntry.Status.COMPLETED)
1160 job=self.id, status=models.HostQueueEntry.Status.PENDING)
1224 statuses = [models.HostQueueEntry.Status.QUEUED,
1225 models.HostQueueEntry.Status.PENDING]
1227 statuses.append(models.HostQueueEntry.Status.VERIFYING)
1237 '%s status=%s, active=%s, complete=%s' %
1238 (child_entry.id, child_entry.status, child_entry.active,
1240 if child_entry.status == models.HostQueueEntry.Status.PENDING:
1241 child_entry.host.status = models.Host.Status.READY
1243 child_entry.status = models.HostQueueEntry.Status.STOPPED
1424 where_clause = 'job_id = %s AND status = "Pending" AND id != %s'
1452 Run this job by kicking its HQEs into status='Starting' if enough
1455 Cleans up by kicking HQEs into status='Stopped' if this Job is not
1489 queue_entry.set_status(models.HostQueueEntry.Status.WAITING)
1498 queue_entry.set_status(models.HostQueueEntry.Status.PENDING)
1538 queue_entry.set_status(models.HostQueueEntry.Status.STARTING)