docs: protected void handleControlSignal() {
      if (toActivate) {
        if (!isInstanceStarted) {
          startInstance();
        }
  
        instance.activate();
        LOG.info("Activated instance: " + physicalPlanHelper.getMyInstanceId());
  
        // Reset the flag value
        toActivate = false;
      }
  
      if (toDeactivate) {
        instance.deactivate();
        LOG.info("Deactivated instance: " + physicalPlanHelper.getMyInstanceId());
  
        // Reset the flag value
        toDeactivate = false;
      }
  
      if (toStop) {
        instance.shutdown();
        LOG.info("Stopped instance: " + physicalPlanHelper.getMyInstanceId());
  
        // Reset the flag value
        toStop = false;
      }
    }