Skip to content

Conversation

@alahiff
Copy link
Collaborator

@alahiff alahiff commented Dec 2, 2024

Using reconnect() incorrectly results in a Run is not active error

Issue: Link to the issue relating to this bug.

Python Version(s) Tested: 3.10.12

Operating System(s): MacOS

📝 Summary

reconnect() is broken. It looks like it was never migrated from v1 to v2 due to a check for the existence of a run name rather than id.

🔍 Diagnosis

The bug can be reproduced by this:

from simvue import Run

if __name__ == "__main__":
    with Run() as run:
        run.init(running=False)

        run_id = run.id

    with Run() as run:
        run.reconnect(run_id)

🔄 Changes

Incorrect check for value of self._name removed.

✔️ Checklist

  • Unit and integration tests passing.
  • Pre-commit hooks passing.
  • Quality checks passing.

@alahiff alahiff linked an issue Dec 2, 2024 that may be closed by this pull request
@alahiff alahiff requested a review from kzscisoft December 2, 2024 17:02
@kzscisoft kzscisoft merged commit 5d5f652 into dev Dec 3, 2024
13 of 14 checks passed
@kzscisoft kzscisoft deleted the 613-reconnect-results-in-a-run-is-not-active-error branch December 3, 2024 08:06
@alahiff alahiff restored the 613-reconnect-results-in-a-run-is-not-active-error branch December 10, 2024 17:00
@kzscisoft kzscisoft deleted the 613-reconnect-results-in-a-run-is-not-active-error branch May 12, 2025 07:08
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.

reconnect() results in a Run is not active error

3 participants