Browse Source

Fixed the cycle blocking bug with one wafer per cycle.

sangwq 9 months ago
parent
commit
8a8ff0ced1
1 changed files with 5 additions and 0 deletions
  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)