Currently corn just sends all tests ready to be sent in one cron run. Instead it should send a number of batches then stop, waiting for the next cron run to send more.

The related function is pift_cron_queue_batch(). I am not sure what to base limit on, either a set number of batches or a set timelimit like 20 seconds so it fits within 30 seconds (default time limit).

Comments

hunmonk’s picture

unless you tore it out in 6.x-2.x, there are already settings for this on the PIFT admin page: 'Send limit' and 'Batch size' -- in the advanced settings.

boombatower’s picture

Right the current code only has batch size. I must have forgotten send limit. I've gone ahead and added it locally and I'll test it out on d6.drupal.org.

boombatower’s picture

Status: Active » Fixed

Added this, but turned out (as I expected) that there was a separate issue relating to an array structure and bad data on d6.drupal.org.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.