Summary:
NMS simple jobs scheduled with CGJobMgr with NMS preference "max emails per hour" set never execute
Detailed Description:
When setting the max emails per hour preference in NMS to > 0 (required for
hostgator among others) and creating/starting a job, the CGJobMgr job is started
by cron, but stays in the "In Progress" state indefinitely. Also, the progress
in the NMS job never increments. I looked through the code for both modules but
didn't see anything that was obviously the culprit.
As a workaround, I inserted a sleep into the send_emails function of the
nms_process_jobs class in lib/nms_process_job.php. I then updated the max emails
per hour preference to 0 so that a simple, non-iterative job would be created by
the start job action in the NMS admin panel. This worked for sending out my 1700
member email list in around 4 hours. I'm not sure if it introduces a problem
elsewhere, but it worked to get my email out in a pinch.
Also, it should be noted that this behavior occurs ever with a list of a single
email address.