Skip to content

fix: keep previous results until a run can start; no default server wait limit - #8

Merged
AdamCorrao merged 1 commit into
AdamCorrao:release/0.2.0-cleanupfrom
DanOlds:pr-13-fixes
Nov 5, 2026
Merged

AdamCorrao merged 1 commit into
AdamCorrao:release/0.2.0-cleanupfrom
DanOlds:pr-13-fixes

Conversation

@DanOlds

@DanOlds DanOlds commented Nov 5, 2026

Copy link
Copy Markdown
  • 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 tracked examples/*/output/ references, which the CLI's default output directory points at). 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). With the rule that a timeout never falls back in-process, the fixed limit meant no refinement over five minutes could complete in auto or server mode. 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

…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

@AdamCorrao AdamCorrao left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed and approved

@AdamCorrao
AdamCorrao merged commit 70ec497 into AdamCorrao:release/0.2.0-cleanup Nov 5, 2026
@DanOlds
DanOlds deleted the pr-13-fixes branch November 5, 2026 20:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants