Page MenuHomePhabricator

Stomp pending processor will always run $batch_size times if there are one or more explicitly pending transactions
Closed, ResolvedPublic

Description

In stompPFPPendingProcessorSA.php:

If the pending queue is shorter than $batch_size, and handle_pending_transaction() pushes one or more pending transactions back into the pending queue, those pending transactions just get back in the queue to be processed again in the same batch. Therefore, if one or more transactions come back from paypal with code 126 or 26, the processor can't quit before it's re-pulled and re-queued the pending items enough times to meet the initial $batch_size.

The end result does not appear to be damaged by the current behavior; It's just an efficiency problem. Ideally, if the queue is shorter than the batch size when the processor gets kicked off, it would consume each transaction in the queue once, and exit.


Version: unspecified
Severity: normal

Details

Reference
bz29519

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:29 PM
bzimport set Reference to bz29519.

I fixed this ages ago. Resolving.