Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

minor fix: improve check_upgradable_plugin_task.py (#26468)

NeatGuyCoding7242a67f8436
diff --git a/api/schedule/check_upgradable_plugin_task.py b/api/schedule/check_upgradable_plugin_task.py
index 0712100c010..e91ce07be3d 100644
--- a/api/schedule/check_upgradable_plugin_task.py
+++ b/api/schedule/check_upgradable_plugin_task.py
@@ -52,7 +52,8 @@ def check_upgradable_plugin_task():
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)
end_at = time.perf_counter()