Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve periodic reload #502

Merged
merged 1 commit into from
Dec 6, 2024
Merged

Improve periodic reload #502

merged 1 commit into from
Dec 6, 2024

Conversation

theseanything
Copy link
Contributor

@theseanything theseanything commented Dec 6, 2024

Currently, it reloads every minute regardless if a reload has occurred within that minute. This is because we never set the last reload time. This also improves the responsiveness by checking for a periodic reload every 5 seconds, instead of a minute (which could potentially mean a reload could take up to 2 minutes).

Renamed csLastReloadTime to csLastAttemptReloadTime for clarity.

Tested in integration

@theseanything theseanything requested a review from a team December 6, 2024 11:36
Currently, it reloads every minute regardless if a reload has occured
within that minute. This is because we never set the last reload time.
This also improves the responsivness by checking for a periodic reload
every 5 seconds, instead of a minute (which could potentially mean a
reload could take up to 2 minutes).
@theseanything theseanything changed the title Fix periodic reload Improve periodic reload Dec 6, 2024
Copy link
Contributor

@MuriloDalRi MuriloDalRi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

(Although there's a failing test and I don't understand enough about what's going on there)

@theseanything theseanything merged commit 42a55ab into main Dec 6, 2024
4 checks passed
@theseanything theseanything deleted the fix-periodic-reload branch December 6, 2024 13:50
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.

2 participants