def __init__(self, rid, **args): TaskMonitor.__init__(self, rid, **args) self.task = args.get("task", None) self.stats = {}