Uploaded image for project: 'CiviCRM'
  1. CiviCRM
  2. CRM-18011

Mailer CRON job limit does not work

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 4.6.12, 4.7
    • Fix Version/s: Unscheduled
    • Component/s: None
    • Labels:
    • Versioning Impact:
      Patch (backwards-compatible bug fixes)
    • Documentation Required?:
      None
    • Funding Source:
      Needs Funding

      Description

      There is a Mailer Setting for: Mailer CRON job limit ($config->mailerJobsMax)

      This is supposed to limit the number of concurrent mailing processes. However the limit is ignored, and each time the process_mailing job is called a new mailing job is processed. Ie:

      First cron job is called, acquires lock 1, starts sending a mailing job
      Second cron job is called, acquires lock 1 again, starts sending a second mailing job

      The code that is supposed to limit this is \CRM\Mailing\BAO\Mailing.php > processQueue > ~ln 2909

      The cause

      The script goes on to acquire a second lock, for the individual mailing job to process (in runJobs_pre). This releases the original cron limit lock. As described in CRM-12856 and CRM-17846

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                john John K.
              • Votes:
                2 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated: