INNER CODE UNIT · Python

start

yashab-cyber/HackGpt · workbench/server.py:200

    def start(self, data):
        scope = Scope.parse(data)
        with self.lock:
            if self.active:
                raise Busy(
                    "An assessment is already running. Cancel it or let its bounded work finish."
                )
            self.cancel = threading.Event()
            assessment = Assessment(scope, cancel=self.cancel, notify=self.update)
            self.active = assessment.report["id"]
            self.live = copy.deepcopy(assessment.report)
            self.checkpoint_persistence_failed = False
            run_id = self.active
            try:
                self.store.save_active(self.live)
            except Exception:
                self.active = None
                self.live = None

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…