Repository navigation
fix: keep previous results until a run can start; no default server wait limit - #8
Merged
Conversation
…ait limit - powderline.run() validates the recipe and probes that the gateway's engine is importable before it clears the directory's fixed-name outputs: a mistyped recipe or a run in an environment without the engine raises and leaves the previous results in place. The probe is the installed_engine_version of the module defining the registered gateway's run(), so a replacement gateway or TOPAS is left to its own checks. - The GSAS-II client's fixed 300 s read timeout on the /simulate request is gone: a refinement takes as long as it takes, as in-process (the connect, write and pool phases keep a 30 s bound). The gsasii gateway gains server_timeout (seconds; None or 0 = no limit) and the CLI --server-timeout SECONDS, mirroring --topas-timeout; past the limit the run raises ExecutionBackendError timeout with no in-process fallback, as before. Gates: core 1848 passed / 23 skipped; gsasii 1488 / 3; docs -W clean. Refs NSLS2#13 Assisted-by: claude-code:claude-fable-5-1
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
powderline.run()validates the recipe and probes that the gateway's engine is importable before it clears the directory's fixed-name outputs: a mistyped recipe or a run in an environment without the engine raises and leaves the previous results in place (including the trackedexamples/*/output/references, which the CLI's default output directory points at). The probe is theinstalled_engine_versionof the module defining the registered gateway'srun(), so a replacement gateway or TOPAS is left to its own checks.The GSAS-II client's fixed 300 s read timeout on the
/simulaterequest is gone: a refinement takes as long as it takes, as in-process (the connect, write and pool phases keep a 30 s bound). With the rule that a timeout never falls back in-process, the fixed limit meant no refinement over five minutes could complete inautoorservermode. The gsasii gateway gainsserver_timeout(seconds; None or 0 = no limit) and the CLI--server-timeout SECONDS, mirroring--topas-timeout; past the limit the run raisesExecutionBackendErrortimeoutwith no in-process fallback, as before.Gates: core 1848 passed / 23 skipped; gsasii 1488 / 3; docs -W clean.
Refs NSLS2#13