Skip to content

fix #1032 Exclusive Access: show validation error #1035

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

Merged
merged 18 commits into from
Jun 23, 2025
Merged

Conversation

yzcj105
Copy link
Contributor

@yzcj105 yzcj105 commented Jun 22, 2025

fix #1032

One output example running result.fetch()

Task validation failed with status code: 400, message: Task has validation error: An error occurred (ValidationException) when calling the CreateQuantumTask operation: 1 validation error for DrivingFieldValidator
__root__
  Value 1 (1400000000.0) in amplitude time_series outside the allowed range [0.0, 15800000.0] (type=value_error).
                                task ID  status  shots
0  XXXXXXXXXXXXXXX  Failed      1

and result.tasks[0].status() will show

Task validation failed with status code: 400, message: Task has validation error: An error occurred (ValidationException) when calling the CreateQuantumTask operation: 1 validation error for DrivingFieldValidator
__root__
  Value 1 (1400000000.0) in amplitude time_series outside the allowed range [0.0, 15800000.0] (type=value_error).
<QuEraTaskStatusCode.Failed: 'Failed'>

@yzcj105 yzcj105 requested a review from jon-wurtz June 22, 2025 17:48
Copy link
Contributor

github-actions bot commented Jun 22, 2025

PR Preview Action v1.6.1
Preview removed because the pull request was closed.
2025-06-23 15:20 UTC

Copy link
Contributor

github-actions bot commented Jun 22, 2025

☂️ Python Coverage

current status: ✅

Overall Coverage

Lines Covered Coverage Threshold Status
8471 7455 88% 0% 🟢

New Files

No new covered files...

Modified Files

File Coverage Status
src/bloqade/analog/task/exclusive.py 33% 🟢
TOTAL 33% 🟢

updated for commit: 1fc7e94 by action🐍

Copy link

codecov bot commented Jun 22, 2025

Codecov Report

Attention: Patch coverage is 0% with 18 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
src/bloqade/analog/task/exclusive.py 0.00% 18 Missing ⚠️

📢 Thoughts on this report? Let us know!

Copy link
Member

@weinbe58 weinbe58 left a comment

Choose a reason for hiding this comment

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

Nice! LGTM

@weinbe58 weinbe58 merged commit 8d0b26f into main Jun 23, 2025
7 of 8 checks passed
@weinbe58 weinbe58 deleted the exclusive-access-task branch June 23, 2025 15:20
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.

Exclusive access not correctly reporting validation errors
2 participants