Skip to content

[#2590] Prevent Runtimes in Journals from Breaking Everything#2676

Merged
Rixxan merged 1 commit into
EDCD:developfrom
HullSeals:enhancement/2590/fix-journal-runtime-plugin-break
Jun 6, 2026
Merged

[#2590] Prevent Runtimes in Journals from Breaking Everything#2676
Rixxan merged 1 commit into
EDCD:developfrom
HullSeals:enhancement/2590/fix-journal-runtime-plugin-break

Conversation

@Rixxan

@Rixxan Rixxan commented Jun 5, 2026

Copy link
Copy Markdown
Contributor

Description

This PR resovles an edge case where unhandled exceptions during file ops (specifically export_ship() and notify_journal_entry()) could result in a situation where Plugins never receive game data.

This PR decouples heavy filesystem events from the main application thread and uses a ThreadPoolExecutor to handle these events instead. This also includes an upgrade to use Python's pattern-matching case features instead of larger if-else loops, which helps ensure a more manageable codebase.

Type of Change

Enhancement

How Tested

Tested to ensure the thread shuts down cleanly, and that the Case entry properly gathers the required information from the journal.

Notes

Resolves #2590.

@Rixxan Rixxan added this to the 6.2.0 milestone Jun 5, 2026
@Rixxan Rixxan self-assigned this Jun 5, 2026
@Rixxan Rixxan merged commit e6a9b6e into EDCD:develop Jun 6, 2026
3 checks passed
@Rixxan Rixxan deleted the enhancement/2590/fix-journal-runtime-plugin-break branch June 6, 2026 18:22
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.

1 participant