Commit Graph

138 Commits

Author SHA1 Message Date
Jan Jakeš
b39dac75d6 Autofix number of newlines between methods
[MAILPOET-2715]
2020-02-19 19:12:53 +00:00
Jan Jakeš
835d8bc0af Fix PHPUnit 6 & Codeception\Verify incompatibilities
[MAILPOET-2582]
2020-01-28 20:18:39 +00:00
Jan Jakeš
8c848cfa28 Convert property names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Jan Jakeš
54549ff037 Convert variable names to camel case
[MAILPOET-1796]
2020-01-14 15:22:42 +01:00
Amine Ben hammou
43df66d162 Add public keyword to methods
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Jan Jakeš
072aa54f37 Move CronTriggerTest from integration to unit
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
Pavel Dohnal
1418abbdb1 Better method name
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
Pavel Dohnal
5b6b21b23f Make method more clear
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
Pavel Dohnal
f1934ff880 Use a better name for method
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
Pavel Dohnal
c6c7320737 Use Doctrine in Scheduler
[MAILPOET-2439]
2019-11-05 13:38:51 +00:00
wxa
87e515b89d Move current unit tests to integration tests 2018-10-29 17:57:47 +03:00
Pavel Dohnal
4249c7a2cb Send an email notification on new subscriber
[MAILPOET-1522]
2018-10-11 10:23:06 +02:00
Pavel Dohnal
b2e2087cfc Split cron daemon into 2 classes
[MAILPOET-1538]
2018-10-04 08:27:31 +02:00
Pavel Dohnal
f81323ad52 Rename Daemon to DaemonHttpRunner
[MAILPOET-1538]
2018-10-03 10:28:26 +02:00
Pavel Dohnal
5d1f3153cd Add Linux Cron Script
[MAILPOET-1538]
2018-09-27 16:51:44 +02:00
Rostislav Wolny
624c6d900e Add processing of soft errors
When processing soft error we only save error to particular subscriber and continue sending.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
ea4c5f46fb Refactor sendingQueue to distinguish bulk/individual sending method
[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
3ae8763837 Refactor sending error handling to extra class
The SendigQueue worker is already a very complex class and handles a lot of things.
Since we want to make error handling more sophisticated it is better to move the error handling responsibility
to a new class.

[MAILPOET-1154]
2018-09-13 11:12:38 +02:00
Rostislav Wolny
8cf5d17cfd Refactor sending task variable name and add typehint
[MAILPOET-1154]
2018-09-13 09:33:26 +02:00
Pavel Dohnal
ae0e03d2f3 Update code for PHP 5.5
[MAILPOET-1496]
2018-08-23 12:10:21 +02:00
Pavel Dohnal
8ea06f3f31 Use POST for cron requests
[MAILPOET-1485]
2018-08-16 08:27:05 +02:00
Pavel Dohnal
a3b79a6907 Fix overriding cron token 2018-07-31 17:48:26 +02:00
Rostislav Wolny
3184b43b3b Add status flag for cron deactivation
Cron daemon, which was triggered by WordPress method, was deactivated
by deletion from DB and it caused the lost of all log data about it.
This commit changes the implementation so that the daemon is deactivated by changing status flag.

[MAILPOET-1457]
2018-07-25 13:23:21 +02:00
Rostislav Wolny
3c7cd193b6 Detect not accessible cron daemon [MAILPOET-801]
This adds a function to a CronHelper which detect accessibility problem based on timestamps
which are stored during cron execution. The main idea is that the cron daemon should update run_started_at
within the REQUEST_TIMEOUT after it was accessed (run_accessed_at).
2018-07-11 09:27:19 +02:00
Rostislav Wolny
083372a391 Store timestamps and last error during cron process [MAILPOET-801] 2018-07-11 09:27:14 +02:00
Rostislav Wolny
9308cffd45 Refactor fetching newsletter options to respect its type [MAILPOET-1431] 2018-06-19 17:06:56 +02:00
Rostislav Wolny
daeee55118 Update Codeception deprecated method calls 2018-06-15 10:35:51 +02:00
Vlad
6d74ba8bb0 Validates that subscriber exists when processing automatic email 2018-06-11 13:40:05 -04:00
Vlad
b3aae566d5 Adds cron scheduler unit tests for automatic emails 2018-06-11 13:40:05 -04:00
Pavel Dohnal
2c290c6e4c Rotate sending queues
This should prevent sending queues to be stuck when a newsletter cannot be send.

[MAILPOET-1391]
2018-06-05 11:05:59 +01:00
Pavel Dohnal
b8ce6ff88c Rotate scheduled tasks
Scheduled tasks should rotate so that they don't block
sending when they cannot be send.

[MAILPOET-1391]
2018-06-04 16:00:32 +01:00
Vlad
28651227d5 Uses rendered subject from queue when preparing newsletter for sending 2018-05-07 20:06:03 -04:00
Tautvidas Sipavičius
2b351e4f34 Use constants for magic numbers, clean up tests 2018-05-03 13:07:29 +03:00
Tautvidas Sipavičius
a588e95762 Add a limit to fetch 5 scheduled tasks at a time [MAILPOET-1366] 2018-05-02 23:27:30 +03:00
Tautvidas Sipavičius
511e07455f Fix migration task to be done only when one hasn't been done
[MAILPOET-1333]
2018-03-21 11:21:23 +02:00
Vlad
5cb39b9bf9 Removes comment that triggers a lint warning 2018-03-20 16:41:36 -04:00
Vlad
d317eb4fbd Adds unit test 2018-03-20 16:30:28 -04:00
Michelle Shull
a3cabad752 Merge pull request #1268 from mailpoet/sending_queue_refactoring
Refactor sending queues to use scheduled task and task subscriber tables [MAILPOET-903]
2018-03-20 08:47:26 -04:00
Vlad
057f0376a5 Adds unit test 2018-03-13 11:28:25 +00:00
stoletniy
e0f989f6a8 Revert "Migrate subscribers for all tasks types [MAILPOET-903]"
This reverts commit f1f69c9835.
2018-03-01 21:17:40 +03:00
stoletniy
f1f69c9835 Migrate subscribers for all tasks types [MAILPOET-903] 2018-02-28 11:21:23 +03:00
stoletniy
03015c0bde Fix code review syntax remarks [MAILPOET-903] 2018-02-26 16:30:53 +03:00
stoletniy
606177baaf Fix daemon ping timeout in tests [MAILPOET-903] 2018-02-14 01:29:14 +03:00
stoletniy
84dfa88a1a Don't load subscriber IDs in memory when preparing tasks from static segments [MAILPOET-903] 2018-02-13 20:36:01 +03:00
stoletniy
4c0f5bb456 Add new unit tests [MAILPOET-903] 2018-02-13 11:39:50 +03:00
stoletniy
be6647d763 Fix unit tests [MAILPOET-903] 2018-02-13 11:39:50 +03:00
stoletniy
9526a6b470 Fix sending of scheduled standard email to dynamic segments [MAILPOET-1286] 2018-02-02 19:19:49 +03:00
Vlad
a3b3e1f8df Removes filter after use 2018-01-16 08:24:44 -05:00
Vlad
87aca7c667 Uses a helper to intercept WP functions 2018-01-16 08:21:26 -05:00
Vlad
a7a8cd2be4 Updates filter name 2018-01-16 08:20:29 -05:00