def xmlrpc_testCheckin(self, hostname, job_id, test, kill_time, test_id): # NB: return 1 means success in this case! See test-env-lab/bin/rhts-test-checkin log.debug("XMLRPC: watchdog.testCheckin(%r, %r, %r, %r, %r)", hostname, job_id, test, kill_time, test_id) try: kill_time = self.canonical_time(kill_time) except: log.error("watchdog.testCheckin: bad kill_time value %r", kill_time) return 0 self.main.send_evt(event.extend_watchdog(kill_time)) return 1 # or "Failure reason"
def proc_evt_extend_watchdog(cmd, args): """Extend watchdog.""" no_opts.prog = cmd no_opts.usage = "%prog SECONDS" no_opts.description = "Extend watchdog." opts, args = no_opts.parse_args(args) if args: timeout = beah.misc.canonical_time(args[0]) else: print >> sys.stderr, "WARNING: SECONDS not specified. Extending for 1 more day." timeout = 24 * 3600 return [event.extend_watchdog(timeout)]
def proc_evt_extend_watchdog(cmd, args): """Extend watchdog.""" no_opts.prog = cmd no_opts.usage = "%prog SECONDS" no_opts.description = "Extend watchdog." opts, args = no_opts.parse_args(args) if args: timeout = beah.misc.canonical_time(args[0]) else: print >> sys.stderr, "WARNING: SECONDS not specified. Extending for 1 more day." timeout = 24*3600 return [event.extend_watchdog(timeout)]