FeaturesTemplatesShowcaseTownie
AI
BlogDocsPricing
Log inSign up
lightweight
lightweightglimpse2-runbook-view-glimpse-save-login-react
Remix of lightweight/glimpse2-runbook-view-glimpse-save-login
Public
Like
glimpse2-runbook-view-glimpse-save-login-react
Home
Code
8
_townie
13
backend
7
frontend
9
shared
3
.vtignore
README.md
deno.json
H
main.tsx
Branches
2
Pull requests
Remixes
History
Environment variables
6
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.
Sign up now
Code
/
backend
/
crons
/
README.md
Code
/
backend
/
crons
/
README.md
Search
…
Viewing readonly version of main branch: v27
View latest version
README.md

Crons

Scheduled task handlers for automated system maintenance.

Available Crons

cleanup-viewing.ts

  • 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

cleanup-agent.ts

  • Purpose: Cleans up stale agent assignments
  • Schedule: Every minute (configurable in Val Town UI)
  • Function: Scans agent blobs for empty agent arrays and clears Assigned property in Notion
  • Blob Cleanup: Deletes empty agent blobs to keep storage clean
  • Blob-First Approach: Scans blobs with pattern glimpse--agent--* for efficient processing

Configuration

Cron schedules are managed through the Val Town web interface. Click on each cron file to modify its schedule as needed.

Go to top
X (Twitter)
Discord community
GitHub discussions
YouTube channel
Bluesky
Product
FeaturesPricing
Developers
DocsStatusAPI ExamplesNPM Package Examples
Explore
ShowcaseTemplatesNewest ValsTrending ValsNewsletter
Company
AboutBlogCareersBrandhi@val.town
Terms of usePrivacy policyAbuse contact
© 2025 Val Town, Inc.