Skip to content

Commit

Permalink
Merge pull request #10227 from WeMoveEU/CRM-20309
Browse files Browse the repository at this point in the history
CRM-20309 Schedule mailing jobs at increasing times
  • Loading branch information
totten authored Jun 11, 2017
2 parents 5895f03 + 198c933 commit 29f9927
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion CRM/Mailing/BAO/MailingJob.php
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,9 @@ public function split_job($offset = 200) {
}
else {
// Creating 'child jobs'
for ($i = 0; $i < $recipient_count; $i = $i + $offset) {
$scheduled_unixtime = strtotime($this->scheduled_date);
for ($i = 0, $s = 0; $i < $recipient_count; $i = $i + $offset, $s++) {
$params[2][0] = date('Y-m-d H:i:s', $scheduled_unixtime + $s);
$params[6][0] = $i;
$params[7][0] = $offset;
CRM_Core_DAO::executeQuery($sql, $params);
Expand Down

0 comments on commit 29f9927

Please sign in to comment.