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
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
Jan Lysý
6ae390bd3d
Move scheduleImmediately to SimpleWorker
...
[MAILPOET-3585]
2021-05-03 11:23:47 +02: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
20eccaad67
Share the $wp property between workers
...
[MAILPOET-2396]
2020-01-07 09:39:28 +00:00
Amine Ben hammou
43df66d162
Add public keyword to methods
...
[MAILPOET-2413]
2019-12-26 18:09:45 +03:00
Jan Jakeš
b7294bd86c
Move cron-scheduling logic from SimpleWorker to CronWorkerRunner
...
[MAILPOET-2539]
2019-12-17 19:54:23 +00:00
Jan Jakeš
0e964de6d4
Move nesbot/carbon to vendor-prefixed
...
[MAILPOET-2560]
2019-12-15 21:55:48 +00:00
Amine Ben hammou
371b6a2824
Remove tasks if processing requirements are false
...
[MAILPOET-2530]
2019-11-25 15:43:57 +00:00
Jan Jakeš
382df5e034
Pass cron worker timer in process() method instead of a constructor
...
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
Jan Jakeš
afecae15f5
Extract scheduling logic from SimpleWorker
...
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
Jan Jakeš
ac794aaca2
Use processTaskStrategy() instead of custom logic in Migration worker
...
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
Jan Jakeš
cd93940940
Make static methods in cron workers non-static
...
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
Jan Jakeš
ba41f4901e
Move SQL queries from SimpleWorker to model, improve naming
...
[MAILPOET-2538]
2019-11-25 12:30:18 +00:00
wxa
81caa04479
Use CronHelper service in cron workers [MAILPOET-2459]
2019-11-06 09:58:36 +00:00
wxa
b8334cb843
Do not progressively reschedule on cron execution timeout [MAILPOET-2392]
2019-10-16 13:55:01 +01:00
wxa
c7b0f50c4c
Store the in_progress flag for all workers [MAILPOET-2443]
2019-10-08 15:03:48 +01:00
wxa
f98ed72d83
Store the 'in_progress' flag for workers in a separate column [MAILPOET-2443]
2019-10-08 15:03:48 +01:00
wxa
26041d61a7
Fix rescheduling of outdated tasks [MAILPOET-2385]
2019-09-30 14:18:08 +01:00
wxa
12c526e120
Merge SingleInstanceSimpleWorker into SimpleWorker [MAILPOET-2385]
2019-09-30 14:18:08 +01:00
wxa
b5106d9d42
Add a single-instance simple worker [MAILPOET-2385]
2019-09-30 14:18:08 +01:00
Jan Jakeš
01a0fe96c4
Remove no longer necessary checks
...
[MAILPOET-1948]
2019-09-12 13:59:32 +02:00
wxa
8b867a7b4f
Reschedule failing cron tasks progressively [MAILPOET-2181]
2019-08-01 13:09:18 -04:00
Pavel Dohnal
e1e96d0c12
Reschedule bounce task
...
[MAILPOET-2100]
2019-06-21 11:33:08 -04:00
Rostislav Wolny
749e7c2dd5
Add ability to prevent automatic scheduling for workers
...
[MAILPOET-1987]
2019-05-21 09:58:29 -04:00
wxa
251ff637cb
Reschedule WP sync if the task is timed out [MAILPOET-1983]
2019-05-13 10:47:09 -04:00
Pavel Dohnal
f3f769316a
Upgrade PHPStan level to 5
...
[MAILPOET-1915]
2019-03-21 14:02:59 -04:00
Amine Ben hammou
b5bc6ec3c6
Remove ununsed method
2019-02-28 15:56:40 -05:00
Pavel Dohnal
bed80e67f1
Use phpstan level 2
...
[MAILPOET-1822]
2019-02-21 13:49:52 -05:00
Ján Mikláš
3ee58aea10
Add space between if and ‘(‘
...
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Ján Mikláš
ebbdec5ebd
Add space between foreach and ‘(‘
...
[MAILPOET-1791]
2019-02-13 08:26:27 -05:00
Amine Ben hammou
a46d98ec44
Refactor WPFunctions to be injectable with DI
2018-12-12 16:43:52 +01:00
Jan Jakeš
8557cbccb1
Refactor SimpleWorker to be more expressive (so PHPStan understands it)
2018-11-15 11:41:04 +01: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
Vlad
467cf350e9
Abstract WP's current_time() function in the code base
2018-03-20 16:34:50 -04:00
stoletniy
c0c57f6b67
Sending queue refactoring WIP [MAILPOET-903]
2018-02-13 11:39:50 +03:00
stoletniy
6e929dcf79
Refactor simple workers to use a ScheduledTask model [MAILPOET-940]
2017-07-05 17:00:23 +03:00
Alexey Stoletniy
ff5f87eeca
Rename processQueueLogic() method to processQueueStrategy() [PREMIUM-4]
2017-05-09 15:42:37 +03:00
Alexey Stoletniy
e85b969e11
Rename initApi() to init() in workers [PREMIUM-4]
2017-05-09 09:12:20 +03:00
Alexey Stoletniy
3f151fd235
Extract simple workers common code into a base class [PREMIUM-4]
2017-05-08 07:38:56 +03:00