Fire all scheduled posts due now
post_drainFlushes scheduled posts due at or before a time boundary, publishing each due entry and skipping already-published pairs. Safe for recurring cron runs to clear the content queue.
Instructions
Fire all scheduled posts due at or before the given time boundary. Side effects: makes external HTTP requests for each due entry; writes results to the YAML backend. Idempotent — already-published (content.id, channel) pairs are skipped; no-op when no entries are due. Safe to call from cron. Use post_drain on a recurring schedule to flush the queue; use post_publish or post_schedule to add new content; use post_status to inspect results after drain runs.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| now | No | ISO-8601 datetime boundary, e.g. '2026-05-21T09:00:00Z'; defaults to current UTC time when omitted. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| results | Yes | Per-variant results, one entry per input variant in the same order. |