Skip to content

fix(core): prevent finished models from stalling the environment clock#131

Merged
profsergiocosta merged 1 commit intodevelopfrom
refactor/remove-salabim
May 3, 2026
Merged

fix(core): prevent finished models from stalling the environment clock#131
profsergiocosta merged 1 commit intodevelopfrom
refactor/remove-salabim

Conversation

@profsergiocosta
Copy link
Copy Markdown
Contributor

A model whose end_time had passed was still included in the pending event queue, causing the clock to stall at its next_time indefinitely.

Fix: filter pending events by both env.end_time and model.end_time.

Add test suite for Environment/Model scheduler (27 tests covering clock accuracy, model boundaries, heterogeneous steps, lifecycle hooks, re-run semantics, and edge cases)

A model whose end_time had passed was still included in the pending
event queue, causing the clock to stall at its next_time indefinitely.

Fix: filter pending events by both env.end_time and model.end_time.

Add test suite for Environment/Model scheduler (27 tests covering
clock accuracy, model boundaries, heterogeneous steps, lifecycle
hooks, re-run semantics, and edge cases)
@profsergiocosta profsergiocosta merged commit c3d22b4 into develop May 3, 2026
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