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
Comment #1
hunmonk commentedunless 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.
Comment #2
boombatower commentedRight 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.
Comment #3
boombatower commentedAdded 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.