I use an item list to track each item in the queue along with its waiting time. If an item exceeds the waiting time limit, it is moved to the crash queue. Currently, I'm implementing a system for machine breakdown during the process. When a breakdown occurs, the item in the queue should be moved to the crash queue. However, I want the process to resume input only after the machine has been repaired. The issue arises when a new item is pushed into the process queue while the machine is still experiencing a breakdown. I need a solution to prevent input into the process queue when the machine is down. Additionally, since I utilize the "pull from item list" strategy for each process queue, I'm uncertain whether this strategy causes items to continue being delivered to the process even during machine breakdowns.
If the tracking time method isn't viable, are there any other methods that can be used to prevent input when the machine breaks down?
螢幕擷取畫面 2024-03-27 230215.png螢幕擷取畫面 2024-03-27 230241.png