Browse Source

更新

tags/V2.7.7^2^2
chenyukun 1 year ago
parent
commit
70b0e37895
2 changed files with 2 additions and 3 deletions
  1. +1
    -2
      .idea/workspace.xml
  2. +1
    -1
      service/Dispatcher.py

+ 1
- 2
.idea/workspace.xml View File

@@ -6,7 +6,6 @@
<component name="ChangeListManager">
<list default="true" id="4f7dccd9-8f92-4a6e-90cc-33890d102263" name="Changes" comment="Changes">
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/config/dsp_application.json" beforeDir="false" afterPath="$PROJECT_DIR$/config/dsp_application.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/service/Dispatcher.py" beforeDir="false" afterPath="$PROJECT_DIR$/service/Dispatcher.py" afterDir="false" />
</list>
<option name="SHOW_DIALOG" value="false" />
@@ -527,7 +526,7 @@
<workItem from="1687652018398" duration="8524000" />
<workItem from="1687736740408" duration="603000" />
<workItem from="1687737713032" duration="3837000" />
<workItem from="1687779451916" duration="1653000" />
<workItem from="1687779451916" duration="1983000" />
</task>
<servers />
</component>

+ 1
- 1
service/Dispatcher.py View File

@@ -114,7 +114,7 @@ class DispatcherService:
end_time = now - task_process.start_proccess_time
if end_time > 80 and task_process.pullQueue.full() and time.time() - persistent_time < 10:
full_count += 1
if full_count > 2:
if full_count > 4:
logger.error("服务器资源限制, 暂无资源可以使用! requestId:{}", requestId)
task_process.sendEvent({"command": "stop_ex"})
full_count = 0

Loading…
Cancel
Save