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.
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",
});