Closed (fixed)
Project:
MailQ (Mail Queue)
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
22 Jan 2011 at 14:58 UTC
Updated:
7 Dec 2015 at 10:54 UTC
Jump to comment: Most recent
The test to know if it's a cron run won't work when cron is launched by poormanscron.
if ($_GET['q'] != 'admin/reports/status/run-cron' && (request_uri() != '/cron.php')) {
Maybe something like this would work ?
if (!variable_get('cron_semaphore', false)) {
But if new mails are sent during cron run, they will be mailed directly instead of being queued. Not so good with sites whose cron run's duration is long.
Comments
Comment #1
cor3huis commentedAlso not compatible with other cron solutions like Super Cron. I would advise trying theQueue Mail Module and see if it fits your goal
Comment #2
el.charter commentedMaybe a pregmatch with the keyword 'cron' would be a good compromise.
Comment #3
polskikrol commentedSubscribe
Comment #4
polskikrol commentedCan confirm the same issue with poormanscron.... only works when run directly via admin/reports/status/run-cron.
Comment #5
zyxware commentedOk this issue should be resolved in the latest 6.x-2.x branch as $_GET is no longer used to detect cron runs. If you can try out the new release it would be great - http://drupal.org/node/1333638. You will have to uninstall the existing module and install the new version as there is no upgrade path as it is. It has quite a few bug fixes as well.
Comment #6
anish_zyxware commented