code: def duration(self):
          
          try:
              start, end = self.hmget('start', 'end')
              return parse(end) - parse(start)
          except:
              return None
docs: If the start and end times of the job are defined, return a timedelta,
          else return None