Rotate scheduled tasks
Scheduled tasks should rotate so that they don't block sending when they cannot be send. [MAILPOET-1391]
This commit is contained in:
@ -74,4 +74,12 @@ class ScheduledTask extends Model {
|
||||
parent::save();
|
||||
return $this;
|
||||
}
|
||||
|
||||
static function touchAllByIds(array $ids) {
|
||||
ScheduledTask::rawExecute(
|
||||
'UPDATE `' . ScheduledTask::$_table . '`' .
|
||||
'SET `updated_at` = NOW() ' .
|
||||
'WHERE `id` IN (' . join(',', $ids) . ')'
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user