Issue 141
bug: Scheduled publishing is enabled but nothing runs the schedule
Back to our planDone
bugcmspriority: medium
Type
bug
Summary
Editors can schedule a page, post or event to publish later, but nothing on the server runs the scheduled task, so a scheduled item probably never goes live on its own. Either the scheduler gets switched on, or the "schedule" option is removed so nobody relies on it.
Problem
Pages, posts and events enable versions.drafts.schedulePublish: true (src/collections/Pages/index.ts:132, Posts/index.ts:230, Events/index.ts:222). Payload runs scheduled publishing through its jobs queue, which needs a runner. src/payload.config.ts has no jobs configuration (no autoRun), and the deploy doesn't run payload jobs:run on a schedule. Found while writing the data model for #128. Not yet confirmed on production.
Proposed fix
- Confirm locally: schedule a post to publish in 2 minutes and check whether it publishes.
- If it doesn't: add a
jobs.autoRunentry for theschedulePublishqueue (Payload Jobs Queue docs), sized for one PM2 process, or removeschedulePublishuntil it's needed. Owner decides.
Acceptance criteria
- Not done: Local check result recorded on this issue.
- Not done: Either a scheduled post publishes on time locally, or the schedule option is gone from Admin.
Area
cms
Priority
medium
Generated by Claude Code, opens in a new tab