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.
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 orphaned agent blobs
- Schedule: Every minute (configurable in Val Town UI)
- Function: Deletes agent blobs where the agent ID doesn't match the demo's "Glimpse agents" relation in Notion
- Read-Only Notion: Only reads Notion data, never modifies it
- Blob Cleanup: Removes mismatched/orphaned blobs to keep storage synchronized with Notion
Cron schedules are managed through the Val Town web interface. Click on each cron file to modify its schedule as needed.