Update session
This commit is contained in:
1 parent
7394aedd5b
commit
e6d66db84b
4 files changed
+28273
-786
No files matched your search
+7
-1
@@ -202,11 +202,17 @@ class BatchStore:
|
||||
if _RESET_FLAG.exists():
|
||||
_RESET_FLAG.unlink(missing_ok=True)
|
||||
if self.current_state is not None:
|
||||
self.log("External reset signal — clearing in-memory state")
|
||||
self.log("External reset signal (SHM marker) — clearing in-memory state")
|
||||
self.current_state = None
|
||||
if self.batch_timer:
|
||||
self.batch_timer.cancel()
|
||||
self.batch_timer = None
|
||||
elif self.current_state is not None and not self.state_file.exists():
|
||||
self.log("External reset signal (state file deleted) — clearing in-memory state")
|
||||
self.current_state = None
|
||||
if self.batch_timer:
|
||||
self.batch_timer.cancel()
|
||||
self.batch_timer = None
|
||||
|
||||
def record_ayam_crossing(self, track_id):
|
||||
"""Line-cross equivalent of production ayam-potong MQTT event."""
|
||||
|
||||
Reference in new issue
Block a user