Return a timedelta representation of the time passed sine the worker
        was running.

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