minor fix: improve check_upgradable_plugin_task.py (#26468)

Signed-off-by: NeatGuyCoding <15627489+NeatGuyCoding@users.noreply.github.com>
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
NeatGuyCoding 2025-09-30 15:36:04 +08:00 committed by GitHub
parent c4884eb669
commit 7242a67f84
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 1 deletions

View File

@ -52,7 +52,8 @@ def check_upgradable_plugin_task():
strategy.include_plugins, strategy.include_plugins,
) )
if batch_interval_time > 0.0001: # if lower than 1ms, skip # Only sleep if batch_interval_time > 0.0001 AND current batch is not the last one
if batch_interval_time > 0.0001 and i + MAX_CONCURRENT_CHECK_TASKS < total_strategies:
time.sleep(batch_interval_time) time.sleep(batch_interval_time)
end_at = time.perf_counter() end_at = time.perf_counter()