Skip to content

New episodes can take up to 3 hours to appear on site after publish time #2177

Closed

Description

@2u841r

New episodes occasionally don't show on the site for several hours after the YouTube video goes live. This has been observed multiple times.

Recent example

Episode 991 ("Vite's bet on Cloudflare / VOID Framework") was scheduled for 11:00 UTC (5:00 PM GMT+6) on March 30, 2026. At 7:51 PM GMT+6 (2h51m after air time) it was still not visible on the site.

Root cause

Show markdown files are merged to main ahead of the air date, but the DB import only runs via the Vercel cron at /webhooks/refresh on a 0 */3 * * * schedule (every 3 hours). Combined with the date: { lte: new Date() } filter in the show queries, a new episode can be invisible for up to 3 hours after its scheduled publish time depending on when the cron last ran.

Suggested fix

Tighten the cron schedule — e.g. */15 * * * * (every 15 min) or 0 * * * * (every hour). The import is already hash-diffed so unchanged shows are skipped cheaply (import_or_update_all_changed_shows in src/server/shows.ts), making more frequent polling low-cost.

Alternatively, trigger /webhooks/refresh from a GitHub Actions workflow on push to main when files under shows/ change.

Activity

  1. wesbos commented on Mar 30, 2026

    @wesbos
    Collaborator

    yeah this iis a good idea. Want to PR it?

  2. 2u841r commented on Mar 30, 2026

    @2u841r
    ContributorAuthor

    yeah this iis a good idea. Want to PR it?

    no.
    please make PR.

  3. Copilot commented on Mar 30, 2026

    Copilot
    Contributor

    The agent encountered an error and was unable to start working on this issue: This may be caused by a repository ruleset violation. See granting bypass permissions for the agent, or please contact support if the issue persists.

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions