{"record":{"id":"1a925ca93ed013cd","repo":"exo-explore/exo","slug":"stopping-image-generation-at-step-t-1-len-tim","errorCode":null,"errorMessage":"Stopping image generation at step {t + 1}/{len(time_steps)}","messagePattern":"Stopping image generation at step (.+?)/(.+?)","errorType":"exception","errorClass":"StopImageGenerationException","httpStatus":null,"severity":"error","filePath":"src/exo/worker/engines/image/pipeline/runner.py","lineNumber":591,"sourceCode":"                    latents=latents,\n                    prompt_data=prompt_data,\n                    num_sync_steps=num_sync_steps,\n                )\n\n                ctx.in_loop(  # pyright: ignore[reportAny]\n                    t=t,\n                    latents=latents,\n                    time_steps=time_steps,\n                )\n\n                mx.eval(latents)\n\n                if t in capture_steps and self.is_last_stage and not self._cancelling:\n                    yield (latents, t)\n\n            except KeyboardInterrupt:  # noqa: PERF203\n                ctx.interruption(t=t, latents=latents)  # pyright: ignore[reportAny]\n                raise StopImageGenerationException(\n                    f\"Stopping image generation at step {t + 1}/{len(time_steps)}\"\n                ) from None\n\n            if self._cancelling:\n                break\n\n        # Drain pending ring recvs after cancellation during async steps.\n        # The last stage sent patches during the final completed step, but\n        # the first stage will never enter the next step to recv them.\n        if (\n            self._cancelling\n            and self.is_first_stage\n            and not self.is_last_stage\n            and self.group is not None\n            and t >= runtime_config.init_time_step + num_sync_steps\n            and t != runtime_config.num_inference_steps - 1\n        ):\n            patch_latents_drain, _ = self._create_patches(latents, runtime_config)","sourceCodeStart":573,"sourceCodeEnd":609,"githubUrl":"https://github.com/exo-explore/exo/blob/21a54c5ea0230a3bec1e1a786d200126c7e34ec6/src/exo/worker/engines/image/pipeline/runner.py#L573-L609","documentation":"Error \"Stopping image generation at step {t + 1}/{len(time_steps)}\" thrown in exo-explore/exo.","triggerScenarios":"Thrown at src/exo/worker/engines/image/pipeline/runner.py:591 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"21a54c5ea0230a3bec1e1a786d200126c7e34ec6","analyzedAt":"2026-08-26T00:02:16.033Z","schemaVersion":2},"datasetVersion":"2026-08-26T04:18:47.238Z"}