Skip to content

Recurring issues #210

Closed as not planned
Closed as not planned

Description

@imshashank

Anything a team does on a cadence currently exists as a calendar reminder, a recurring Slack message, or somebody's memory. The weekly release checklist, the monthly dependency sweep, the quarterly access review, the retro.

The roadmap lists recurring issues under "Later". The reason to pull it forward is that it composes with issue templates: a recurring issue is a template plus a schedule, so if templates land, most of this is already built.

What to build

A recurrence definition that creates issues on a schedule.

  • A cadence: daily, weekly on given days, monthly on a date or an ordinal weekday, or every N of those
  • A template or a stored issue shape to instantiate: title, description, labels, priority, assignee, project, team
  • An end condition: never, on a date, or after N occurrences
  • Pause and resume, without losing the definition
  • A visible list of definitions, with the next occurrence, so people can see what is about to appear

The details that make or break it

Do not create the next one until the previous one is resolved, optionally. A weekly task that nobody does should not produce fifty two open issues by December. Make this a per definition choice: always create, or only create if the last one is closed. The second is usually what people want and almost never what they get.

Time zones. A definition belongs to a workspace or a person, and "every Monday" means Monday somewhere. Store the zone with the definition. This is the single most common source of bugs in features like this.

Missed runs. A self hosted instance that was down for three days comes back up. Does it create the three issues it missed, or just the next one? Just the next one, almost certainly, but say so and make it deliberate rather than a consequence of how the job is written.

Attribution. The creator is the definition, acting as the person who set it up. The activity feed should say so. See the audit log issue in the Extension surface milestone for the same actor question.

Idempotency. Whatever runs the schedule must not double create if it runs twice. Key each occurrence on the definition and the occurrence date, with a unique index.

Where the schedule runs

This is the design question. Orbit deploys as one Next.js app on Vercel with no worker process. There is already at least one thing that wants a schedule: writeCycleSnapshots in packages/core/src/analytics/snapshot.ts exists and something has to call it.

Options are a Vercel cron hitting a route, an external scheduler, or a database driven check on request. Whatever is chosen here should be the mechanism the whole project uses, because this is not the last scheduled job Orbit will need. Say what you propose and check how snapshots are currently triggered before deciding.

Files

  • packages/db/src/schema/work.ts
  • packages/core/src/work/
  • packages/core/src/analytics/snapshot.ts for the existing scheduled work
  • apps/web/src/app/api/ for a cron route
  • docs/self-hosting.md, because a self hoster has to know a scheduler is needed

Depends on

Issue templates, ideally. It can be built without them by storing a shape inline, but that duplicates a model that is about to exist. Coordinate on the templates thread.

Activity

  1. added this to the Planning parity milestone on Aug 8, 2026
  2. added
    enhancement
    help wanted
    p2 medium
    area: issues
    roadmap
    on Aug 8, 2026
  3. moved this to Backlog in Orbit roadmapon Aug 8, 2026
  4. added
    size: large
    points: 8
    schema change
    on Aug 8, 2026
  5. imshashank commented on Aug 8, 2026

    @imshashank
    ContributorAuthor

    The scheduler question here is the same one #126 has for webhook retries, and the same one writeCycleSnapshots in packages/core/src/analytics/snapshot.ts already has with nothing calling it.

    Agree the mechanism on #126 rather than inventing a second one here.

    This issue also composes with #206: a recurring issue is a template plus a schedule. If issue templates land first, most of the shape here is already built, so check that thread before storing an issue shape inline.

  6. imshashank commented on Sep 6, 2026

    @imshashank
    ContributorAuthor

    Closing until issue templates (#206) exist, since a recurring issue is a template plus a schedule. One correction for whoever reopens it: the scheduler question is answered. apps/web/vercel.json already runs cron routes (/api/cron/notifications every minute, analytics snapshots, prune), so a recurrence job is one more cron route, and self-hosting needs the equivalent from #392.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: issuesenhancementhelp wantedp2 mediumpoints: 8roadmapschema changesize: large

    Type

    No type

    Projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions