fix(rsocials): postiz sweep skips nodes with any postizStatus set
Earlier version only skipped when postizPostId was set. If a send attempt failed (no postizPostId but postizStatus='failed'), the sweep retried every 60s and hammered Postiz's throttler. Retries now require the user to clear postizStatus — same gate as a fresh node. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
1cde95f3fc
commit
b2fbe7ded4
|
|
@ -944,6 +944,9 @@ async function postizSweep() {
|
|||
if (node.type !== 'post') continue;
|
||||
const d = node.data as PostNodeData;
|
||||
if (d.postizPostId) continue;
|
||||
// Skip any node that's already been handled by Postiz (queued/published/failed).
|
||||
// A failed send needs the user to clear postizStatus before we retry.
|
||||
if (d.postizStatus) continue;
|
||||
if (d.status !== 'scheduled') continue;
|
||||
if (!d.scheduledAt) continue;
|
||||
const ts = new Date(d.scheduledAt).getTime();
|
||||
|
|
|
|||
Loading…
Reference in New Issue