def __init__(self, first_run=None, run_every=None):
        """
        :param first_run: datetime - when this event should first run
        :param run_every: number of seconds between repeats of this task or None for no repeat
        """
        if first_run is None:
            self.next_run = datetime.datetime.utcnow()
        else:
            self.next_run = first_run

        self.run_every = run_every

        self.error = None
        self.done = False
def __init__ ( self , first_run = None , run_every = None ) : if first_run is None : self . next_run = datetime . datetime . utcnow ( ) else : self . next_run = first_run self . run_every = run_every self . error = None self . done = False
:param first_run: datetime - when this event should first run
        :param run_every: number of seconds between repeats of this task or None for no repeat