Overview
Scheduling automates regular prompt execution, allowing you to track how AI visibility changes over time without manual intervention.Every schedule change triggers an immediate run in addition to the recurring schedule. This ensures you have fresh data right away.
Accessing Schedule Settings
- Navigate to Schedule from the sidebar
- Select your workspace (if you have multiple)
Schedule Page Layout
The schedule interface displays:Setting Up a Schedule
Choose a Frequency
Select from predefined schedule options:
- Every 12 hours
- Every day at midnight
- Every 2 days at midnight
- Every week (Sunday midnight)
Cron:
0 */12 * * *Runs twice daily starting at midnight (00:00 and 12:00 in your local timezone).Best for: High-frequency monitoring during active campaigns or product launches.Save the Schedule
Click Save Schedule. OneGlance will:
- Persist the cron expression to the database
- Trigger an immediate run
- Schedule future executions via pg_cron
How Scheduling Works
Architecture Overview
Scheduling uses PostgreSQL’spg_cron extension:
Execution Flow
API Request
The SQL makes an HTTP POST to
/api/trpc/internal.runPrompts with:workspaceIduserId(workspace owner)Authorizationheader with internal cron secret
Provider Execution
Worker agents (apps/agent) consume jobs from BullMQ queues:
- One queue per provider (ChatGPT, Claude, etc.)
- Playwright automation runs each prompt
- Responses stored in ClickHouse
Timezone Handling
Schedules use your local timezone but are stored as UTC cron expressions.Disabling a Schedule
Manual Run Triggers
Even with a schedule disabled, you can run prompts on-demand.From the Schedule Page
- Disable the current schedule (if any)
- Select a frequency
- Click Save Schedule
From the Dashboard
No direct “Run Now” button exists on the dashboard. Navigate to Schedule → Save Schedule to trigger.Monitoring Scheduled Runs
Last Prompt Run Card
Displays the most recent execution time (scheduled or manual):Dec 15, 2025, 12:00:34 AM
Next Scheduled Run Card
Shows when the next execution will occur:In 4 hours
Real-Time Updates
The timing cards refresh every 60 seconds:Schedule Best Practices
1. Align Frequency with Business Goals
High-Frequency (Every 12 hours)
High-Frequency (Every 12 hours)
Use cases:
- Active product launches
- Competitive campaigns
- Rapid content publishing
- Crisis monitoring
- Higher API costs
- More data storage
- May detect short-term fluctuations (noise)
Daily (Once per day)
Daily (Once per day)
Use cases:
- Standard ongoing monitoring
- Content marketing programs
- Weekly/monthly reporting cadence
- Balanced cost and coverage
- Captures day-over-day trends
- Recommended for most users
Low-Frequency (Every 2 days or weekly)
Low-Frequency (Every 2 days or weekly)
Use cases:
- Stable categories with slow AI training updates
- Budget-conscious monitoring
- Mature brands with established visibility
- Reduced costs
- May miss short-term events
- Sufficient for trend analysis
2. Schedule Around Content Publishing
If you publish blog posts, press releases, or major updates, schedule runs to measure impact:3. Coordinate with Team Workflows
Align schedule timing with team meetings:4. Account for AI Provider Updates
Major AI providers (OpenAI, Anthropic, Google) release model updates periodically. Schedule runs after known update windows to measure impact. Example:- ChatGPT model update: December 1st
- Run prompts: December 2nd, 9th, 16th (weekly)
- Compare: Did rankings/sentiment change post-update?
Understanding Schedule Notifications
When you save a schedule, OneGlance shows different toast notifications:Schedule saved and immediate run started
Schedule saved and immediate run started
Meaning: Your prompts are queued and executing now.Next steps: Monitor progress on the Dashboard or Prompts page.
Schedule saved, but no prompts are configured for this workspace
Schedule saved, but no prompts are configured for this workspace
Meaning: Schedule is active, but you have zero prompts.Solution:
- Go to Prompts page
- Add at least one prompt
- Return to Schedule and click Save again
apps/web/src/app/(auth)/schedule/page.tsx:148:Schedule saved, but immediate run failed
Schedule saved, but immediate run failed
Meaning: The cron schedule was persisted, but the initial run encountered an error.Common causes:
- Network issues
- Provider API rate limits
- Temporary worker unavailability
Schedule disabled
Schedule disabled
Meaning: No future runs will execute automatically.Result: The pg_cron job is removed, but past data remains.
Troubleshooting
Next run time doesn't match my timezone
Next run time doesn't match my timezone
Cause: The UI displays relative time (“In 5 hours”) which may appear incorrect if your system clock is wrong.Solution: Verify your computer’s timezone settings. The schedule uses your browser’s reported timezone, not the server’s.
Scheduled run didn't execute at expected time
Scheduled run didn't execute at expected time
Possible causes:Solution: For self-hosted deployments, ensure:
- pg_cron extension not running (self-hosted only)
- Database connection lost
- Cron secret misconfigured
pg_cronis installed and runningAPI_BASE_URLandINTERNAL_CRON_SECRETenv vars are set (packages/services/src/prompt/scheduler.ts:18)
Last Prompt Run shows 'Never' despite active schedule
Last Prompt Run shows 'Never' despite active schedule
Cause: No runs have completed successfully yet.Common scenarios:
- Just created schedule (wait for first execution)
- All previous runs failed
- Database migration reset timestamps
Immediate run on schedule save fails
Immediate run on schedule save fails
Error message: “Schedule saved, but immediate run failed. It will run on the next cron cycle.”Non-blocking: The schedule is saved and future runs will work.Cause: Worker agents may be:
- Temporarily down
- Processing too many jobs (queue backlog)
- Rate-limited by AI provider APIs
Advanced: Custom Cron Expressions
For self-hosted users, you can manually insert custom cron schedules:Next Steps
Interpreting Metrics
Analyze trends from scheduled runs to measure AI visibility changes
Managing Prompts
Optimize your prompt set based on scheduled run insights
Team Collaboration
Share schedule settings and coordinate run timing with teammates
API Reference
Programmatically manage schedules via the OneGlance API
Related Concepts
- Setup Guide - Initial workspace configuration
- Local Setup - Self-hosting and pg_cron setup
- Architecture Overview - Job queue and worker systems