summaryrefslogtreecommitdiff
path: root/src/srht_contrib/scripts
diff options
context:
space:
mode:
authorChristian Cleberg <[email protected]>2026-05-06 23:19:54 -0500
committerChristian Cleberg <[email protected]>2026-05-06 23:19:54 -0500
commit6289a28296bd0863d373bb47c1c85038f4bc6a2b (patch)
treedee6f38ddf69ef361ceaccc855ac8b70cbe302a2 /src/srht_contrib/scripts
parent79182c129011a65bec9006d295dbe382b0d81f97 (diff)
downloadhutch-stats-6289a28296bd0863d373bb47c1c85038f4bc6a2b.tar.gz
hutch-stats-6289a28296bd0863d373bb47c1c85038f4bc6a2b.tar.bz2
hutch-stats-6289a28296bd0863d373bb47c1c85038f4bc6a2b.zip
feat: improve scheduled indexing throughput and capped backoff
Diffstat (limited to 'src/srht_contrib/scripts')
-rw-r--r--src/srht_contrib/scripts/enqueue_actors.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/srht_contrib/scripts/enqueue_actors.py b/src/srht_contrib/scripts/enqueue_actors.py
index 03f1f9b..bd838cb 100644
--- a/src/srht_contrib/scripts/enqueue_actors.py
+++ b/src/srht_contrib/scripts/enqueue_actors.py
@@ -40,7 +40,7 @@ def _iter_usernames(path: Path) -> list[str]:
return usernames
-def enqueue_actors(username_file: Path, *, stagger_seconds: int = 300, start_at: datetime | None = None) -> int:
+def enqueue_actors(username_file: Path, *, stagger_seconds: int = 60, start_at: datetime | None = None) -> int:
settings = Settings()
session_factory = make_session_factory(settings)
usernames = _iter_usernames(username_file)
@@ -95,7 +95,7 @@ def main() -> None:
parser.add_argument(
"--stagger-seconds",
type=int,
- default=300,
+ default=60,
help="Seconds to space out each actor's first eligible poll time.",
)
args = parser.parse_args()