Skip to content

PCVL-1235 Added more logs - #26

Merged
Aubaert merged 2 commits into
mainfrom
PCVL-1235-qaptiva-middleware-add-logs
Apr 27, 2026
Merged

PCVL-1235 Added more logs#26
Aubaert merged 2 commits into
mainfrom
PCVL-1235-qaptiva-middleware-add-logs

Conversation

@Aubaert

@Aubaert Aubaert commented Apr 21, 2026

Copy link
Copy Markdown
Collaborator

No description provided.

self._job.cancel()
raise RuntimeError("Job has been canceled.")
except:
except Exception as e:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Il y a confusion des genres entre exception & code d'erreur.
L'exception sert à transmettre ce genre d'info (job failed), l'exception est peut-être plus importante que l'échec du job, etc ...

Comment thread perceval_interop/myqlm/qpu_handler.py Outdated
raise
try:
self._job.cancel()
finally:

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Si job.cancel() raise, on perd la deuxième exception

@Aubaert
Aubaert merged commit 278ae5f into main Apr 27, 2026
11 checks passed
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