code: def _reset_find_task_vars(self):
          
          frame = sys._getframe()
          while frame and not self._task_vars:
              self._task_vars = frame.f_locals.get('all_vars')
              frame = frame.f_back
docs: Monsterous hack: since "meta: reset_connection" does not run from an
          action, we cannot capture task variables via :meth:`on_action_run`.
          Instead walk the parent frames searching for the `all_vars` local from
          StrategyBase._execute_meta(). If this fails, just leave task_vars
          unset, likely causing a subtly wrong configuration to be selected.