switchExecutionMode()

in app/lib/server/jobProcessor.ts [106:116]


  switchExecutionMode(mode: string) {
    if (mode !== this.currentMode && (mode === "api" || mode === "docker")) {
      this.currentMode = mode;
      this.executor = this.createExecutor(mode);
      console.log(`🔄 Switched execution mode to: ${mode}`);
    } else if (mode !== "api" && mode !== "docker") {
      console.warn(
        `Invalid execution mode: ${mode}. Valid modes are 'api' and 'docker'.`
      );
    }
  }