Commit Graph

624 Commits

Author SHA1 Message Date
Rodrigo Primo
57c80ea763 Change SimpleWorker::prepareTaskStrategy() to use Doctrine
This commit changes the method prepareTaskStrategy() in the class
SimpleWorker and all its child classes to use ScheduledTaskEntity
instead of ScheduledTask.

[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Rodrigo Primo
e69a3f9a53 Migrate method findCompletedByType() to Doctrine
[MAILPOET-2996]
2021-10-04 13:25:44 +02:00
Rodrigo Primo
60ae98e09c Helper method to support migration from Paris to Doctrine
This commit adds a helper method called convertTaskClass() to
CronWorkerRunner to support the migration of the code inside this class
from Paris to Doctrine. This method receives a ScheduledTaskEntity and
returns a ScheduledTask. It will be remove once the migration is
finished.

[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Rodrigo Primo
65eef3dfbe Migrate methods findDueByType() and findRunningByType() to Doctrine
[MAILPOET-2996]
2021-09-29 13:53:27 +02:00
Pavel Dohnal
21839fc30b Fix indentation of multiline function declarations
[MAILPOET-3732]
2021-09-17 12:17:36 +02:00
Pavel Dohnal
cdda3480ca Make all constructor signatures multiline
[MAILPOET-3732]
2021-09-16 14:19:40 +02:00
Rostislav Wolny
2619f9cdda Fix Truncated incorrect DOUBLE error in SQL for last engagement date
The error was caused by comparing 0 with string dates.
[MAILPOET-3795]
2021-09-13 12:56:59 +02:00
Pavel Dohnal
6f66fba66f Fix return type
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
1f6836dae6 Save bounces statistics
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
a303b4f04e Process queues to save statistics
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
db04687f3c Refactor to Doctrine
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Pavel Dohnal
6f28228c55 Stop using a deprecated function
[MAILPOET-3765]
2021-09-13 10:19:15 +02:00
Rostislav Wolny
c2c383e0b5 Add method for immediate scheduling/rescheduling cron tasks
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
1c4eb15f93 Refactor CronWorkerScheduler to Doctrine
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
493a6a6704 Disable periodical scheduling of Woo Customers sync
[MAILPOET-3726]
2021-09-08 16:12:37 +02:00
Rostislav Wolny
ae2d450dce Search for last engagement in orders only if WooCommerce is active
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
dfd733aa39 Handle different collations when comparing columns with emails
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
ebf4773eb8 Process adding last engagement time in batches
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
bb806613d7 Update last engagement time also from latest Woo order
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Rostislav Wolny
8dd7c240bb Add worker for updating last engagement from opens and clicks
[MAILPOET-3762]
2021-09-07 10:07:08 +02:00
Jan Lysý
00bd5e2e7d Schedule recalculation only when another is not running or scheduled
[MAILPOET-3776]
2021-09-06 12:14:38 +02:00
Jan Lysý
19fad073d0 Add cleanup subscribers counts cache
[MAILPOET-3714]
2021-08-09 10:38:37 +02:00
Jan Lysý
a6dc552cdc Use new controller with subscribers counts
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
bd49e73efb Add check that item cache contains created_at
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Jan Lysý
77c00014ca Create worker for subscribers count calculation
[MAILPOET-3646]
2021-07-12 11:51:39 +02:00
Rostislav Wolny
65b834a9ff Update renamed NotCamelCaps rule
[MAILPOET-3658]
2021-07-06 13:29:00 +02:00
Jan Lysý
4c67e97206 Fix parameters in integration tests
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
c9636ebf1b Use Newsletter\Links as service
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
4449f76901 Remove static calling from Links
[MAILPOET-3269]
2021-06-14 10:12:34 +02:00
Jan Lysý
050688e155 Schedule segments recalculation every day
[MAILPOET-3633]
2021-05-24 09:56:38 +02:00
Jan Lysý
55b4051e3f Add reset in progress state for sending queue tasks
[MAILPOET-3608]
2021-05-19 17:59:07 +02:00
Jan Lysý
6c54c5900c Add check if sending queue is in progress
[MAILPOET-3608]
2021-05-19 17:59:07 +02:00
Jan Lysý
6d0486cfc5 Add calculation segment score
[MAILPOET-3533]
2021-05-12 14:42:22 +02:00
Pavel Dohnal
ddf081dfae Spread bounce check in time
[MAILPOET-3592]
2021-05-10 10:52:48 +02:00
Jan Lysý
7b9231c249 Use new topic for logs
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
50b484ab10 Improve throttling handler
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
aba99b84f2 Remove reading batch size from constructor
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
6a9e692f64 Add service for automatic decrease sending batch size
[MAILPOET-3588]
2021-05-03 18:39:33 +02:00
Jan Lysý
3d34f7e5ac Enable automatic scheduling in SubscribersEngagementScore
[MAILPOET-3585]
2021-05-03 11:23:47 +02:00
Jan Lysý
6ae390bd3d Move scheduleImmediately to SimpleWorker
[MAILPOET-3585]
2021-05-03 11:23:47 +02:00
Jan Lysý
cfa29c9df1 Change cron scheduling for SubscribersEngagementScore
[MAILPOET-3585]
2021-05-03 11:23:47 +02:00
Pavel Dohnal
025d588591 Fix tests
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
Pavel Dohnal
3f91c40594 Round score to 1 decimal instead of 0
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
Pavel Dohnal
c1f7fb6cd4 Create a worker for initial score calculation
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
Pavel Dohnal
274da5cd64 Create cron worker for calculating scrore
[MAILPOET-3525]
2021-04-26 13:46:23 +02:00
Rostislav Wolny
3d2c62fc16 Unify list vs segment naming with a rest of codebase
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
3dc5c5ce80 Add return typehint to check deleted segments method
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
bbd4cb98f8 Skip empty subscribers batches during sending
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
5331d76c79 Add error notice for sending newsletter with deleted list
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00
Rostislav Wolny
b3da3ec1bc Pause running tasks that have deleted or trashed segments
[MAILPOET-3418]
2021-04-07 09:48:31 +02:00