mirror of https://github.com/langgenius/dify.git
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:
parent
c4884eb669
commit
7242a67f84
|
|
@ -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()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue