CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • civimail.cronjob.php only sending one mailing at a time
Pages: [1]

Author Topic: civimail.cronjob.php only sending one mailing at a time  (Read 2668 times)

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
civimail.cronjob.php only sending one mailing at a time
December 04, 2007, 02:35:40 am
I finally got to a point where the civimail.cronjob.php script is working and is successfully processing mail in the queue. These are jobs that have been in the queue for a period of time so are, in a sense, "overdue". I am running the script from the command line using wget with authentication. All of this is working except only one entry in the queue is processed at a time. If a re-run the script, the next item in the queue is processed.

Also, I am not sure of the relationship between the entries in the CiviMail Configuration screen and the cron job. That is Mailer Spool Period, Mailer Batch Limit and Mailer Spool Limit. It would seem that those settings would be meaningful if there were some kind of a daemon running that would query them every now and then but the cron job seems to run once and stop after only processing one item.


Piotr Szotkowski

  • Moderator
  • I live on this forum
  • *****
  • Posts: 1497
  • Karma: 57
Re: civimail.cronjob.php only sending one mailing at a time
December 04, 2007, 05:13:09 am
The Spool settings regard situations when you’re spooling emails to civicrm_mailing_spool instead of sending them.

Are you sure you simply don’t hit your Mailer Batch Limit when running the cronjob? CRM_Mailing_BAO_Job::runJobs() should process all scheduled jobs (until one of them goes over the limit).
If you found the above helpful, please consider helping us in return – you can even steer CiviCRM’s future and help us extend CiviCRM in ways useful to you.

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: civimail.cronjob.php only sending one mailing at a time
December 04, 2007, 11:52:39 am
The batch limit is set to 0 (unlimited).
I left the spool limit as blank. I'll try setting it to zero too or some other number. The instructions on the page are not clear. It says "for more than limit, send them in Spool Table." I'm not sure what that means.

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: civimail.cronjob.php only sending one mailing at a time
December 04, 2007, 11:58:02 am
I have now done this and got the same result. Only one mail at a time is processed when the script is run.

Dennis Gray

  • Ask me questions
  • ****
  • Posts: 472
  • Karma: 1
  • CiviCRM version: Various. See post.
  • CMS version: Drupal, Wordpress and Joomla. See post.
  • MySQL version: TBA
  • PHP version: TBA
Re: civimail.cronjob.php only sending one mailing at a time
December 04, 2007, 12:37:01 pm
I could not find anything on civicrm_mailing_spool. I did a search and no results were returned.

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: civimail.cronjob.php only sending one mailing at a time
December 04, 2007, 03:02:06 pm

I reproduced this problem on the demo server. can you please file a bug report on the issue tracker and we'll fix it for 2.0

thanx

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: civimail.cronjob.php only sending one mailing at a time
December 04, 2007, 03:29:29 pm
i filed an issue at: http://issues.civicrm.org/jira/browse/CRM-2469.

This has now been resolved for 2.0. If critical, you can backport the fix from this diff: http://fisheye.civicrm.org/browse/CiviCRM/trunk/CRM/Mailing/BAO/Job.php?r1=12458&r2=12502
« Last Edit: December 04, 2007, 03:40:17 pm by Donald Lobo »
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Denver Dave

  • Ask me questions
  • ****
  • Posts: 471
  • Karma: 9
Re: civimail.cronjob.php only sending one mailing at a time
December 05, 2007, 10:09:03 pm
I'm not sure exactly how this relates, but when I use the following URL provided in this forum:
http://<your drupal site>/civicrm/mailing/queue?reset=1

It does send the 8 emails that I'm trying to send with CiviMail.  I have not yet tried with a larger group.  I wonder if this would send more than one email at a time for Ozyank

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviMail (Moderator: Piotr Szotkowski) »
  • civimail.cronjob.php only sending one mailing at a time

This forum was archived on 2017-11-26.