Add periodic logging and graceful SoftTimeLimitExceeded handling for bot tasks #16
+26
−3
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This reverts commit feb952f.## Summary
click_captions_buttonwait loop to provide visibility when bots are waiting to be admitted to Google MeetSoftTimeLimitExceededexceptions with proper event recordingChanges
Periodic Logging (google_meet_ui_methods.py)
TimeoutExceptionhandler that fires every 30 iterations (~30 seconds)SoftTimeLimitExceeded Handling
BOT_TASK_SOFT_TIME_LIMIT_SECONDSsetting (default: 14400s / 4 hours)FATAL_ERROR_SOFT_TIME_LIMIT_EXCEEDEDevent subtype (code:soft_time_limit_exceeded)SoftTimeLimitExceededand creates a properFATAL_ERROReventSTAGED Bot Handling (bot_controller.py)
interrupted_while_stagedflag to track if bot was interrupted during STAGED stateConfiguration
Set
BOT_TASK_SOFT_TIME_LIMIT_SECONDSenvironment variable to override the default 4-hour limit.