feat: add validator for post fueling and car abandon
This commit is contained in:
parent
7a38933bb0
commit
4002febed2
4 changed files with 128 additions and 5 deletions
|
@ -471,10 +471,14 @@ class WebSocketHandler:
|
|||
# Update worker state
|
||||
worker_state.set_progression_stage(display_identifier, stage)
|
||||
|
||||
# Update tracking integration for car abandonment detection
|
||||
session_id = worker_state.get_session_id(display_identifier)
|
||||
if session_id:
|
||||
shared_stream_manager.set_progression_stage(session_id, stage)
|
||||
|
||||
# If stage indicates session is cleared/finished, clear from tracking
|
||||
if stage in ['finished', 'cleared', 'idle']:
|
||||
# Get session ID for this display and clear it
|
||||
session_id = worker_state.get_session_id(display_identifier)
|
||||
if session_id:
|
||||
shared_stream_manager.clear_session_id(session_id)
|
||||
logger.info(f"[Tracking] Cleared session {session_id} due to progression stage: {stage}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue