def __return(self, shard_state, tstate, task_directive):
    """Handler should always call this as the last statement."""
    task_directive = self._set_state(shard_state, tstate, task_directive)
    self._save_state_and_schedule_next(shard_state, tstate, task_directive)
    context.Context._set(None)
def __return ( self , shard_state , tstate , task_directive ) : task_directive = self . _set_state ( shard_state , tstate , task_directive ) self . _save_state_and_schedule_next ( shard_state , tstate , task_directive ) context . Context . _set ( None )
Handler should always call this as the last statement.