Skip to content

Handle premature run termination gracefully #520

@kzscisoft

Description

@kzscisoft

Currently if retention period is set to be shorter than run duration then you get the server response. This is quite messy:

Traceback (most recent call last):
  File "/home/user/.pyenv/versions/3.12.6/lib/python3.12/threading.p
y", line 1075, in _bootstrap_inner
    self.run()
  File "/home/user/Documents/Simvue/python-api/simvue/factory/
dispatch/queued.py", line 144, in run
    self._callback(_buffer, queue_label)
  File "/home/user/Documents/Simvue/python-api/simvue/run.py",
 line 385, in _online_dispatch_callback
    self._error(f"{e}", join_threads=False)
  File "/home/user/Documents/Simvue/python-api/simvue/run.py",
 line 500, in _error
    raise RuntimeError(message)
RuntimeError: HTTP error for 'https://test.simvue.io/api/metrics' [404]:
 {"detail":"No such run"}

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions