(self)
Advances to the next task if there is no pending task and alerts the
        user of its existence.
Advances to the next task if there is no pending task and alerts the
        user of its existence.
Advances to the next task if there is no pending task and alerts the user of its existence .
def _next_task(self):
        # type: () -> None
        '''
        Advances to the next task if there is no pending task and alerts the
        user of its existence.
        '''
        self.pending_task = self.tasks.pop(0)
        self.parent.alert_user(self, self.pending_task)
        self._reset_message()
        self._escalation_time = get_expiration_time(datetime.now(tz=pytz.utc), ESCALATION_TIME)
        logging.info('Beginning task for {0}'.format(self['name']))
def _next_task ( self ) : # type: () -> None self . pending_task = self . tasks . pop ( 0 ) self . parent . alert_user ( self , self . pending_task ) self . _reset_message ( ) self . _escalation_time = get_expiration_time ( datetime . now ( tz = pytz . utc ) , ESCALATION_TIME ) logging . info ( 'Beginning task for {0}' . format ( self [ 'name' ] ) )