Remove check that sending queue is deleted at
[MAILPOET-4366]
This commit is contained in:
@@ -135,7 +135,6 @@ class ScheduledTasksRepository extends Repository {
|
|||||||
->where('st.type = :type')
|
->where('st.type = :type')
|
||||||
->andWhere('st.status IS NULL')
|
->andWhere('st.status IS NULL')
|
||||||
->andWhere('st.deletedAt IS NULL')
|
->andWhere('st.deletedAt IS NULL')
|
||||||
->andWhere('sq.deletedAt IS NULL')
|
|
||||||
->orderBy('st.priority', 'ASC')
|
->orderBy('st.priority', 'ASC')
|
||||||
->addOrderBy('st.updatedAt', 'ASC')
|
->addOrderBy('st.updatedAt', 'ASC')
|
||||||
->setMaxResults($limit)
|
->setMaxResults($limit)
|
||||||
|
@@ -76,9 +76,8 @@ class ScheduledTasksRepositoryTest extends \MailPoetTest {
|
|||||||
// deleted task
|
// deleted task
|
||||||
$task = $this->scheduledTaskFactory->create(ScheduledTaskEntity::TYPE_SENDING, null, Carbon::now()->subDay(), Carbon::now());
|
$task = $this->scheduledTaskFactory->create(ScheduledTaskEntity::TYPE_SENDING, null, Carbon::now()->subDay(), Carbon::now());
|
||||||
$this->sendingQueueFactory->create($task);
|
$this->sendingQueueFactory->create($task);
|
||||||
// deleted sending queue
|
// without sending queue
|
||||||
$task = $this->scheduledTaskFactory->create(ScheduledTaskEntity::TYPE_SENDING, null, Carbon::now()->subDay());
|
$this->scheduledTaskFactory->create(ScheduledTaskEntity::TYPE_SENDING, null, Carbon::now()->subDay());
|
||||||
$this->sendingQueueFactory->create($task, null, Carbon::now());
|
|
||||||
// scheduled in future
|
// scheduled in future
|
||||||
$task = $this->scheduledTaskFactory->create(ScheduledTaskEntity::TYPE_SENDING, ScheduledTaskEntity::STATUS_COMPLETED, Carbon::now()->addDay());
|
$task = $this->scheduledTaskFactory->create(ScheduledTaskEntity::TYPE_SENDING, ScheduledTaskEntity::STATUS_COMPLETED, Carbon::now()->addDay());
|
||||||
$this->sendingQueueFactory->create($task);
|
$this->sendingQueueFactory->create($task);
|
||||||
|
Reference in New Issue
Block a user