code: def elapsed(self):
          
          if not self.start_date:
              return None
          return (self.end_date or datetime.utcnow()) - self.start_date
docs: Return a timedelta representation of the time passed sine the worker
          was running.