瀏覽代碼

Fixed the cycle blocking bug with one wafer per cycle.

sangwq 9 月之前
父節點
當前提交
8a8ff0ced1
共有 1 個文件被更改,包括 5 次插入0 次删除
  1. 5 0
      Venus/Venus_RT/Modules/VenusDispatcher.cs

+ 5 - 0
Venus/Venus_RT/Modules/VenusDispatcher.cs

@@ -297,6 +297,11 @@ namespace Venus_RT.Modules
                 string runingTask = _runingWaferTask.Value.Count > 0 ? _runingWaferTask.Value.First().ToString() : "Empty";
                 LOG.Write(eEvent.WARN_ROUTER, Module, $"TryDequeueRuningTask() failed, PM Status: {status}, runing task : {runingTask}");
             }
+
+            if(_runingWaferTask.Value.Count == 0 && _runingWaferTask.Key != Guid.Empty) 
+            {
+                _runingWaferTask = new KeyValuePair<Guid, Queue<KeyValuePair<RecipeJobType, string>>>(Guid.Empty, new Queue<KeyValuePair<RecipeJobType, string>>());
+            }
         }
 
         public override void WaferArrived(WaferTask wafer, int slot)