Design Scheduled Tasks That Run ChatGPT Prompts at User-Chosen Times

Last updated: November 29, 2026

Quick Overview

Design a feature where users ask ChatGPT to run a prompt later or on a recurring schedule (for example a daily news summary at 8 am in their time zone) and get notified with the result.

OpenAI
System Design
Software Engineer
OpenAI
November 29, 2026
Software Engineer
Technical Screen
System Design
Easy

0

0

0 solved


Design a feature where users ask ChatGPT to run a prompt later or on a recurring schedule (for example a daily news summary at 8 am in their time zone) and get notified with the result.

ChatGPT can run tasks for users on a schedule, which is a classic distributed cron problem with an LLM call as the job body. The interviewer checks time zone handling, at-least-once execution without double notifications, and smoothing load spikes at popular times.

What the Interviewer Expects
  • Store schedules with explicit time zones and compute next run in UTC
  • Use a scalable due-time index instead of scanning all tasks
  • Execute at least once with idempotency so users are not double-notified
  • Spread load when millions of tasks fire at the top of the hour
  • Limit active tasks per user and handle failures visibly
Key Topics to Cover
distributed cron
time zones
job queues
idempotency
How to Approach This
  1. Start by clarifying functional and non-functional requirements with the interviewer.
  2. Estimate the scale: QPS, storage, bandwidth. This drives your design decisions.
  3. Draw a high-level architecture first, then deep dive into 1-2 critical components.
  4. Discuss trade-offs explicitly (e.g., consistency vs availability, SQL vs NoSQL).
  5. Address failure scenarios, monitoring, and how the system handles 10x traffic spikes.
Possible Follow-up Questions
  • How do you handle daylight saving time transitions for a 2:30 am task?
  • What if inference is overloaded at 9:00 am every day?
  • How would users pause or edit a recurring task?
Sharpen Your Skills on Codemia

Practice similar problems with our interactive workspace, get AI feedback, and track your progress.

Practice System Design Problems
Sample Answer
Requirements
  • Create, edit, pause, delete tasks: prompt, schedule (one-off or RRULE-like recurrence), time zone, notification channels.
  • At run time, execute the prompt as the user (with their tools, such as sea...
High-Level Design
  • Task service with a DB table tasks(id, user_id, prompt, rrule, tz, next_run_utc, status).
  • Due index: an index on next_run_utc (or a time-bucketed table) polled by a dispatcher.
  • *...

Submit Your Answer
Markdown supported