Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-45722: CRITICAL logs on empty quantum graph #306

Merged
merged 1 commit into from
Aug 29, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions python/lsst/ctrl/mpexec/cli/cmd/commands.py
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@
)
return
if (qgraph := script.qgraph(pipelineObj=pipeline, **kwargs, show=show)) is None:
raise click.ClickException("QuantumGraph was empty; CRITICAL logs above should provide details.")
raise click.ClickException("QuantumGraph was empty; ERROR logs above should provide details.")

Check warning on line 194 in python/lsst/ctrl/mpexec/cli/cmd/commands.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/ctrl/mpexec/cli/cmd/commands.py#L194

Added line #L194 was not covered by tests
# QuantumGraph-only summary call here since script.qgraph also called
# by run methods.
if summary:
Expand Down Expand Up @@ -220,7 +220,7 @@
)
return
if (qgraph := script.qgraph(pipelineObj=pipeline, **kwargs, show=show)) is None:
raise click.ClickException("QuantumGraph was empty; CRITICAL logs above should provide details.")
raise click.ClickException("QuantumGraph was empty; ERROR logs above should provide details.")

Check warning on line 223 in python/lsst/ctrl/mpexec/cli/cmd/commands.py

View check run for this annotation

Codecov / codecov/patch

python/lsst/ctrl/mpexec/cli/cmd/commands.py#L223

Added line #L223 was not covered by tests
_unhandledShow(show, "run")
if show.handled:
print(
Expand Down
Loading