Commit Graph

24 Commits

Author SHA1 Message Date
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
stoletniy
606177baaf Fix daemon ping timeout in tests [MAILPOET-903] 2018-02-14 01:29:14 +03:00
Vlad
87aca7c667 Uses a helper to intercept WP functions 2018-01-16 08:21:26 -05:00
Vlad
819d4dc17a Abstracts WP functions 2018-01-15 19:52:51 -05:00
Vlad
0e2a67c203 Validates ping response when displaying cron URL status 2017-12-18 20:28:09 -05:00
Vlad
64c40d5a1c Adds test for multisite environment 2017-11-21 12:25:54 -05:00
Vlad
02966c3b93 Sets cron daemon timeout to 5s across the plugin
Adds hook to override cron request arguments
2017-09-20 14:59:48 +01:00
Pavel Dohnal
84dc48daec Allow passing cron timeouts
[MAILPOET-1114]
2017-09-20 14:59:48 +01:00
Vlad
320dfa2ec5 Extracts duplicate code into reusable methods
Updates unit test
2017-09-20 14:59:48 +01:00
Tautvidas Sipavičius
e9c55260c8 Merge pull request #1092 from mailpoet/db_version_settings_logic_update
Uses plugin's settings to store DB version [MAILPOET-1095]
2017-09-11 18:15:17 +03:00
Vlad
b0343254c0 Renames db version setting value 2017-09-11 10:05:09 -04:00
Vlad
52470360a1 Returns ping response body instead of boolean 2017-09-10 18:49:15 -04:00
Vlad
6c62459ed4 Adds filter to override default cron request URL 2017-09-10 18:36:22 -04:00
Vlad
98482cebf9 Uses plugin's settings to store DB version 2017-09-10 16:31:36 -04:00
stoletniy
6fb18ad321 Fix PSR1.Classes.ClassDeclaration sniffer rule in tests [MAILPOET-1025] 2017-07-26 18:28:56 +03:00
Alexey Stoletniy
2220a13399 Remove unused imports [MAILPOET-764] 2017-01-25 10:14:38 +03:00
Vlad
a6b00e1ba7 - Adds new "ping" cron daemon router endpoint
- Removes the requirement to have data payload for router requests
2017-01-08 22:25:39 -05:00
Vlad
3508ac36b4 - Removes daemon status logic and updates tests
- Refactors daemon
- Adds daemon unit tests
2016-09-08 19:22:42 -04:00
Vlad
d9fbbdc02d - Updates code comments 2016-08-31 09:23:12 -04:00
Vlad
f2d1787bd5 - Updates site URL detection logic
- Adds unit test for Cron Helper class
2016-08-30 12:37:30 -04:00