Skip to content
Snippets Groups Projects
Commit 61edf75e authored by Jean-Paul Calderone's avatar Jean-Paul Calderone
Browse files

note for the future

parent 6a3ec530
No related branches found
No related tags found
1 merge request!73Automatically maintain leases
......@@ -329,6 +329,12 @@ def lease_maintenance_service(
(interval_mean + halfrange).total_seconds(),
),
)
# Rather than an all-or-nothing last-run time we probably eventually want
# to have a more comprehensive record of the state when we were last
# interrupted. This would remove the unfortunate behavior of restarting
# from the beginning if we shut down during a lease scan. Shutting down
# during a lease scan becomes increasingly likely the more shares there
# are to check.
last_run = read_time_from_path(last_run_path)
if last_run is None:
initial_interval = sample_interval_distribution()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment