bug: stuck 'posting' status entries never get reprocessed #235
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Description
If the PHP process dies while a post is in
postingstatus (e.g., timeout, memory error, server restart), the post is stuck forever. TheQueueProcessor::processQueue()method only queries forqueuedandfailedstatuses:WHERE status = 'queued'WHERE status = 'failed'Posts with
status = 'posting'are never re-processed and never show up as failed.Fix
Add a stale-posting recovery step at the start of
processQueue()that resets anypostingentries older than a configurable timeout (e.g., 5 minutes) back toqueued:Impact
source/packages/com_mokosuitecross/src/Helper/QueueProcessor.phpBranch created:
feature/235-bug-stuck-posting-status-entries-never-g