code: def transition_to_rollback(self):
          
          assert self.state in [AQStateMachineStates.execute, AQStateMachineStates.execute_complete]
          self.state = AQStateMachineStates.rollback
docs: Transition to rollback