Maho_Queue_Model_Observer
in package
Table of Contents
Constants
- ABANDONED_COUNT_CACHE_KEY : mixed = 'maho_queue_abandoned_count'
- Cached count so every admin page load does not pay a queue-table query; well under the abandonment threshold, so the notice is never meaningfully late. The retry/discard actions drop the key for instant feedback.
- ABANDONED_COUNT_CACHE_SECONDS : mixed = 60
Methods
- warnAboutAbandonedMessages() : void
- Nothing re-queues a claim a dead worker left behind, so the grid is the only way one comes back and somebody has to be told to look at it.
- abandonedMessageCount() : int
- Caught rather than probed: isTableExists() would introspect the schema on every request.
Constants
ABANDONED_COUNT_CACHE_KEY
Cached count so every admin page load does not pay a queue-table query; well under the abandonment threshold, so the notice is never meaningfully late. The retry/discard actions drop the key for instant feedback.
public
mixed
ABANDONED_COUNT_CACHE_KEY
= 'maho_queue_abandoned_count'
ABANDONED_COUNT_CACHE_SECONDS
private
mixed
ABANDONED_COUNT_CACHE_SECONDS
= 60
Methods
warnAboutAbandonedMessages()
Nothing re-queues a claim a dead worker left behind, so the grid is the only way one comes back and somebody has to be told to look at it.
public
warnAboutAbandonedMessages() : void
Attributes
- #[Observer]
- 'controller_action_layout_generate_blocks_before'
- $area: 'adminhtml'
abandonedMessageCount()
Caught rather than probed: isTableExists() would introspect the schema on every request.
private
abandonedMessageCount() : int