Skip to content

[mock_uss] Regular cleanup of outdated flights#1364

Open
the-glu wants to merge 1 commit intointeruss:mainfrom
Orbitalize:garbage_collection_on_mocks_3
Open

[mock_uss] Regular cleanup of outdated flights#1364
the-glu wants to merge 1 commit intointeruss:mainfrom
Orbitalize:garbage_collection_on_mocks_3

Conversation

@the-glu
Copy link
Contributor

@the-glu the-glu commented Feb 24, 2026

This PR add a regular cleaning job of flights and operational intents in mock_uss/flights/database.

Idea is to prevent building-up of flights if mock uss stay up for a long time. Memory is still limited (in SynchronizedValue), but it should help for #1059.

Interval values has been set arbitrary, they should work most of the time and don't interfere with regular tests.

I switched to a period task instead of having manual calls everywhere (including notifications).

Similar changes should be done for ridsp database as we do have flights that can build-up there. For others instances of databases, we could have build-up of elements but we don't have time information (e.g. riddp has only flight urls).

@the-glu the-glu force-pushed the garbage_collection_on_mocks_3 branch from 2528aca to b4bf02c Compare February 24, 2026 10:13
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