INNER CODE UNIT · Python

update

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

    def update(self, report):
        # Progress snapshots are publishable only while they are explicitly running.
        # Terminal state is published by run() after durable commit succeeds or after
        # the result is explicitly marked memory-only.
        if not isinstance(report, dict) or report.get("status") != "running":
            return
        with self.lock:
            if self.active != report.get("id"):
                return
            self.live = copy.deepcopy(report)
        try:
            self.store.save_active(report)
        except Exception:
            with self.lock:
                if self.active == report.get("id"):
                    self.checkpoint_persistence_failed = True

    def run(self, assessment):

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…