Skip to content

implement instancelock timeout#21

Merged
hzhreal merged 3 commits into
mainfrom
instancelock-timeout
Feb 19, 2026
Merged

implement instancelock timeout#21
hzhreal merged 3 commits into
mainfrom
instancelock-timeout

Conversation

@hzhreal
Copy link
Copy Markdown
Owner

@hzhreal hzhreal commented Feb 19, 2026

Let Instance.timestamp be the epoch of the last point in time when an instance got acquired. When attempting to acquire a new slot, check if INSTANCE_TIMEOUT seconds has passed (if possible), if so then free a slot.

Therefore, if some bug happens and a slot cannot be freed, we can just ignore it and eventually move on.

@hzhreal hzhreal merged commit c362f2a into main Feb 19, 2026
@hzhreal hzhreal deleted the instancelock-timeout branch February 19, 2026 22:45
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