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

Fix job failing and marking it error #1455

Merged
merged 1 commit into from
Aug 14, 2024

Conversation

akihikokuroda
Copy link
Collaborator

@akihikokuroda akihikokuroda commented Aug 14, 2024

Summary

Fix the issue with the following log

  File "/usr/src/app/api/management/commands/schedule_queued_jobs.py", line 86, in handle
    job.save()
  File "/usr/local/lib/python3.11/site-packages/django/db/models/base.py", line 778, in save
    self._prepare_related_fields_for_save(operation_name="save")
  File "/usr/local/lib/python3.11/site-packages/django/db/models/base.py", line 1093, in _prepare_related_fields_for_save
    raise ValueError(
ValueError: save() prohibited to prevent data loss due to unsaved related object 'compute_resource'.

Details and comments

Copy link
Member

@Tansito Tansito left a comment

Choose a reason for hiding this comment

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

Thank you for the help, Aki!

@akihikokuroda akihikokuroda merged commit 7280c41 into Qiskit:main Aug 14, 2024
10 checks passed
@akihikokuroda akihikokuroda deleted the jobfail branch August 14, 2024 15:44
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