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

Use jobs order provided by the cloud #583

Merged
merged 1 commit into from
Sep 22, 2023
Merged

Conversation

HGSilveri
Copy link
Collaborator

Closes #570 .

Comment on lines -211 to -220
job_params[0]["runs"] = 1
with pytest.raises(RuntimeError, match="Failed to find job ID"):
# Job runs don't match MockJob
fixt.pasqal_cloud.submit(
seq,
job_params=job_params,
emulator=emulator,
config=config,
)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Why is this test no longer relevant ?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Because we no longer try to determine the jobs order (the code where this was being raised was deleted)

Copy link
Collaborator

Choose a reason for hiding this comment

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

Okay, that was my guess... So it's no longer an issue that the number of runs in job_params is different than number of runs in "mock_job" ? The two issues seemed independent to me, but I am not I understood the test in the first place...

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

That manual change was just a way for the job params to not match anymore and thus trigger the fail to find the job ID.

Copy link
Collaborator

@a-corni a-corni left a comment

Choose a reason for hiding this comment

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

Thanks for the explanations, looks good to me !

@a-corni a-corni merged commit 5256cf8 into develop Sep 22, 2023
6 checks passed
@HGSilveri HGSilveri deleted the hs/cloud-jobs-order branch October 20, 2023 08:55
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.

Adopt built-in job ordering from pasqal-cloud 0.3.5
2 participants