Public
Like
glimpse2-runbook-view-glimpse-save-login-react
Val Town is a collaborative website to build and scale JavaScript apps.
Deploy APIs, crons, & store data – all from the browser, and deployed in milliseconds.
Viewing readonly version of main branch: v12View latest version
Scheduled task handlers for automated system maintenance.
- Purpose: Cleans up stale viewing sessions
- Schedule: Every minute
- Function: Marks sessions older than 1 minute as not viewing
- Notion Sync: Immediately updates Notion database when sessions end
- Purpose: Cleans up stale agent assignments
- Schedule: Every 15 minutes (configurable in Val Town UI)
- Function: Clears Person and Glimpse agents properties for pages with Viewing = false
- Blob Cleanup: Removes agents from blob storage to keep frontend in sync
- Query Optimization: Only processes pages that actually need cleanup
Cron schedules are managed through the Val Town web interface. Click on each cron file to modify its schedule as needed.