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 »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Mailings scheduler seems to be triggered irregularly by cron
Pages: [1]

Author Topic: Mailings scheduler seems to be triggered irregularly by cron  (Read 594 times)

liblogger

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Mailings scheduler seems to be triggered irregularly by cron
September 22, 2014, 08:08:39 am
Hi there,

We have a mailing going to about 3500 contacts, with the mailer batch limit set to 100, and the mailings scheduler set to run hourly - this ought to take about a day and a half to complete, but it takes at least twice that.

Because we're on a shared server, I've only been running the cron job hourly. I'd assumed that because the mailings scheduler was set to run hourly, this would coincide, but is it possible that the few seconds it takes for the mailing job to send 100 emails is long enough for the system to think that the next cron run is less than an hour later, and delay the mailing scheduler until the following hour?

(As a corollary, if I run the mailing scheduler manually to chivvy the mailing along, should I also assume that the system times the next mailing batch from that point rather than the last cron run?)

Dan C

  • I post frequently
  • ***
  • Posts: 179
  • Karma: 17
  • CiviCRM version: All
  • CMS version: Joomla 2.5 and 3.X, Drupal 7, Wordpress 3.7 and up
  • MySQL version: 5.1.7 and up
  • PHP version: 5.3.5 and up
Re: Mailings scheduler seems to be triggered irregularly by cron
September 22, 2014, 10:03:08 am
I'm not sure about the main part of your question.  However, to answer your corollary, yes, running the mailing scheduler will base the future run on the last time the job was run.  So if it was previously running every hour, and you trigger the job manually on the half hour, every future run will be on the half hour.
CrusonWeb - Web Development, Implementation, and Support.  Specializing in CiviCRM and Joomla (although also knowledgable in Wordpress and Drupal as well).

Eileen

  • Forum Godess / God
  • I’m (like) Lobo ;)
  • *****
  • Posts: 4195
  • Karma: 218
    • Fuzion
Re: Mailings scheduler seems to be triggered irregularly by cron
September 22, 2014, 03:47:54 pm
We normally schedule mailing crons to do 500-1000 in a batch & run every 3 minutes
Make today the day you step up to support CiviCRM and all the amazing organisations that are using it to improve our world - http://civicrm.org/contribute

liblogger

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Re: Mailings scheduler seems to be triggered irregularly by cron
September 23, 2014, 02:17:56 am
We're not able to send out many emails because we're currently (still) sending from a shared server, and can only send 500 emails per hour in total. (We've also had complaints from our host about the cron job running too often, although that was more along the lines of 'something is putting a strain on the server, stop doing things', rather than the cron job actually causing problems). I guess the only thing I can do is try setting the cron job to run more often next time we send out a mailing.

(And hunt down the guy who's supposed to be building our internal server)

clarkac

  • Administrator
  • Ask me questions
  • *****
  • Posts: 399
  • Karma: 11
  • CiviCRM version: 4.4.11 & 4.5.5
  • CMS version: Drupal 7
  • MySQL version: 5.1.61-cll
  • PHP version: 5.3.27
Re: Mailings scheduler seems to be triggered irregularly by cron
September 23, 2014, 02:26:38 am
All of my clients are running on a shared server, also with a 500 limit per hour.  I set a limit of 120 emails per run and set cron to run every 15 mins.  Worked fine on a mail out of over 4000, but took a while of course.
Andy Clark

liblogger

  • I’m new here
  • *
  • Posts: 19
  • Karma: 0
  • CiviCRM version: 4.3.5
  • CMS version: Drupal 7.23
  • MySQL version: 5.0.7
  • PHP version: 5.3.5
Re: Mailings scheduler seems to be triggered irregularly by cron
September 23, 2014, 07:44:39 am
I'm not too worried about the batch limit - just wondering why it's not being triggered every hour (It seems rather pointless running the cron job every few minutes when it's only going to trigger an action once an hour)

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Installing CiviCRM »
  • CiviMail installation and configuration (Moderator: Donald Lobo) »
  • Mailings scheduler seems to be triggered irregularly by cron

This forum was archived on 2017-11-26.