From 2dce7830fd11867df33f407a51f389f48ac05099 Mon Sep 17 00:00:00 2001 From: Matthew Larson Date: Wed, 17 Apr 2024 09:21:13 -0500 Subject: [PATCH] Remove initial sleep wait --- hsds/domain_sn.py | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/hsds/domain_sn.py b/hsds/domain_sn.py index 28fc38ad..cf2f911f 100755 --- a/hsds/domain_sn.py +++ b/hsds/domain_sn.py @@ -903,17 +903,12 @@ async def PUT_Domain(request): post_params["bucket"] = bucket req_send_time = getNow(app) log.debug(f"Sending rescan request at time {req_send_time}") + await http_post(app, notify_req, data={}, params=post_params) # Poll until the scan_complete time is greater than # req_send_time or 3 minutes have elapsed max_scan_duration = int(config.get("max_scan_duration", default=180)) RESCAN_SLEEP_TIME = 0.1 - INITIAL_SCAN_SLEEP_TIME = 0.4 - - # Start with brief wait to avoid time discrepancies between nodes - asyncio.sleep(INITIAL_SCAN_SLEEP_TIME) - - await http_post(app, notify_req, data={}, params=post_params) while True: scan_time = await getScanTime(app, root_id, bucket=bucket)