Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Investigate/fixtest_cancel_running_job #1019

Closed
Assignees
merav-aharoni
Labels
bugSomething isn't working
@kt474

Description

@kt474

This test has been failing for a while now -https://github.com/Qiskit/qiskit-ibm-runtime/actions/runs/5863436233/job/15896900505

It appears that when attempting to cancel a running job, callingjob.cancel() can return a 204 and raise no errors while the job is actually completed.

This snippet shows that the status ofjob isCANCELLED but retrieving the job and status again showsDONE, which is the correct status.

I'm guessing this is some sort of race condition where the job runs too quickly and if this is the case, it should be handled appropriately on the client side.

deftest_cancel_job_running(self,service):"""Test canceling a running job."""job=self._run_program(service,iterations=5)ifnotcancel_job_safe(job,self.log):returntime.sleep(10)# Wait a bit for DB to update.rjob=service.job(job.job_id())print("job==rjob is "+str(job==rjob))print("job.job_id() = "+str(job.job_id()))print("rjob.job_id() = "+str(rjob.job_id()))print("job.status() = "+str(job.status()))print("rjob.status()) = "+str(rjob.status()))self.assertEqual(job.status(),JobStatus.CANCELLED)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions


    [8]ページ先頭

    ©2009-2025 Movatter.jp