|
| 1 | +diff --git a/src/Engine/MaestroEngine.php b/src/Engine/MaestroEngine.php |
| 2 | +index 2781c37..8037c52 100644 |
| 3 | +--- a/src/Engine/MaestroEngine.php |
| 4 | ++++ b/src/Engine/MaestroEngine.php |
| 5 | +@@ -1538,7 +1538,7 @@ class MaestroEngine { |
| 6 | + $taskMachineName = $queueRecord->task_id->getString(); |
| 7 | + $templateMachineName = MaestroEngine::getTemplateIdFromProcessId($queueRecord->process_id->getString()); |
| 8 | + // Just days * seconds to get an offset. |
| 9 | +- $reminderInterval = intval($queueRecord->reminder_interval->getString()) * 86400; |
| 10 | ++ $reminderInterval = intval($queueRecord->reminder_interval->getString()) * 60; |
| 11 | + // we're in here because we need a reminder. So do it. |
| 12 | + $this->doProductionAssignmentNotifications($templateMachineName, $taskMachineName, $queueID, 'reminder'); |
| 13 | + $queueRecord->set('next_reminder_time', $currentTime + $reminderInterval); |
| 14 | +@@ -1568,7 +1568,7 @@ class MaestroEngine { |
| 15 | + $numberOfEscalationsSent = intval($queueRecord->num_escalations_sent->getString()); |
| 16 | + // First time through, numberOfEscalations is 0... second time it's 1 etc. |
| 17 | + // that means that our interval needs to be numberOfEscalations +1 * the offset of the escalation in days. |
| 18 | +- $escalationInterval = (1 + $numberOfEscalationsSent) * (intval($queueRecord->escalation_interval->getString()) * 86400); |
| 19 | ++ $escalationInterval = (1 + $numberOfEscalationsSent) * (intval($queueRecord->escalation_interval->getString()) * 60); |
| 20 | + if ($currentTime > ($createdTime + $escalationInterval)) { |
| 21 | + // We need to send out an escalation. |
| 22 | + $this->doProductionAssignmentNotifications($templateMachineName, $taskMachineName, $queueID, 'escalation'); |
| 23 | +@@ -1837,7 +1837,7 @@ class MaestroEngine { |
| 24 | + if (array_key_exists('notifications', $nextTask)) { |
| 25 | + $reminderInterval = $nextTask['notifications']['reminder_after']; |
| 26 | + if (intval($reminderInterval) > 0) { |
| 27 | +- $nextReminderTime = $currentTime + (intval($reminderInterval) * 86400); |
| 28 | ++ $nextReminderTime = $currentTime + (intval($reminderInterval) * 60); |
| 29 | + } |
| 30 | + $escalationInterval = $nextTask['notifications']['escalation_after']; |
| 31 | + } |
0 commit comments