Weekly queue scheduling vs. cron jobs for multi-timezone social accounts

5 min readScheduling & workflowsView as Markdown

Static UTC cron jobs drift by an hour twice a year during Daylight Saving Time and require custom slot-collision bookkeeping across every social account. Per-account weekly queues store IANA timezones, assign the next open cadence slot atomically, and deliver scheduled posts without a running cron job.

1. Where UTC cron jobs break down

Hardcoding 14:00 UTC for a New York account works in winter (9:00 AM EST) and silently shifts to 10:00 AM EDT in March. Multiply that across 40 client accounts spanning New York, London, Berlin, and Tokyo and cron expressions quickly become unmaintainable.

Even worse, cron does not know whether Tuesday at 9:00 AM already has a scheduled campaign post, forcing every caller or AI agent to inspect calendars and compute free timestamps by hand.

2. Atomic slot assignment with useQueue

With PubNio weekly queues, you define each account's recurring weekday cadence once using its IANA timezone. Any app backend, CLI script, or MCP agent simply passes useQueue: true and PubNio assigns the next open slot automatically.

weekly-queue.ts · @pubnio/sdk
await ws.queues.update(accountId, {
  timezone: "Europe/London",
  slots: [
    { dayOfWeek: 1, time: "09:30" },
    { dayOfWeek: 3, time: "13:00" },
    { dayOfWeek: 5, time: "09:30" },
  ],
});

const queued = await ws.posts.publish(draft.postId, {
  useQueue: true,
  idempotencyKey: "release-note-slot",
});