Commit graph

262 commits

Author SHA1 Message Date
Josh Soref
f6fda5840d spelling: failure
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:03:23 -04:00
Josh Soref
9369691713 spelling: existence
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:03:23 -04:00
Josh Soref
4139134cfd spelling: effectiveness
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:03:23 -04:00
Josh Soref
abbea6f002 spelling: and
Signed-off-by: Josh Soref <2119212+jsoref@users.noreply.github.com>
2023-03-26 16:03:22 -04:00
Michael
54d5f2df43 More reliable system variables 2023-03-15 21:16:21 +00:00
Michael
baf75adfca Some loglevels are adjusted to more reasonablöe levels 2023-02-16 20:47:37 +00:00
Philipp
80e8f4aa34
Execute critical worker tasks, even if we're in daemon mode 2023-01-07 13:43:16 +01:00
Philipp
1e574d5383
Refactor IManageConfigValues interface 2023-01-03 14:22:04 +01:00
Hypolite Petovan
1874a32728 Happy New Year 2023! 2023-01-01 09:36:24 -05:00
Hypolite Petovan
319857edaa
Merge pull request #12583 from annando/delivery-queue
Bulk delivery added for all protocols
2022-12-31 11:36:54 -05:00
Michael
8e397b5849 Changes after review 2022-12-31 16:20:18 +00:00
Michael
259b99e6e9 Bulk delivery added for all protocols 2022-12-31 12:19:34 +00:00
Hypolite Petovan
b0898ada29 Add previous exception to unexpected worker exception logging 2022-12-30 22:25:19 -05:00
Philipp
6b3265742a
Replace cron/worker "last" config entries with key-value entries 2022-12-29 21:53:57 +01:00
Michael
fa80c69d94 Only fetch the processes if needed 2022-12-03 19:44:50 +00:00
Hypolite Petovan
ed7b175491 Catch worker argument type errors
- This marks the invalid worker queue item as completed instead of endlessly retrying it
- Address https://github.com/friendica/friendica/issues/11992#issuecomment-1327029331
2022-11-26 15:21:46 -05:00
Michael
4930737cc4 Legacy "include" fragments have been removed 2022-10-20 04:21:00 +00:00
Michael
018858934b The priority is now a class constant 2022-10-17 05:49:55 +00:00
Michael
a21c04d55d Use "maxloadavg" when "worker_load_cooldown" is not defined 2022-10-10 06:01:07 +00:00
Michael
4c52772d84 Use class constant 2022-09-26 13:33:31 +00:00
Michael
97e5477bde static cooldown moved to the cooldown function 2022-09-22 22:46:59 +00:00
Michael
e1341b6ad3 Fallback for load detection, additional checks 2022-09-22 05:45:42 +00:00
Michael Vogel
0fa281247d More cooldown calls for worker processes 2022-09-21 21:03:07 +02:00
Michael
075638c0ae Pause the worker execution when the load is too high 2022-09-04 13:54:32 +00:00
Michael
cc43b567cb Some changes after code review 2022-08-31 19:03:37 +00:00
Michael
757a5c2de9 Loglevels are adjusted 2022-08-30 19:45:30 +00:00
Roland Häder
8756d92316
Continued:
- prevents a "Return value of Friendica\Core\Worker::workerProcess() must be of the type array, bool returned"
2022-06-18 15:57:31 +02:00
Roland Häder
af8cd5ca86 Worker::getWaitingJobForPID() can also return FALSE on failure ... :-( 2022-06-17 17:18:31 +02:00
Roland Häder
f7c1eaa858 Continued:
- added type-hints
- removed out-dated documentation
- added some missing documentation
2022-06-17 17:18:31 +02:00
Michael
dc16e6d471 The worker is split into several classes 2022-05-19 19:24:21 +00:00
Michael
a8839517fe Fix workerqueue entries with wrong priority 2022-05-14 06:36:43 +00:00
Michael
6e394ac6ff Whitespaces removed 2022-05-02 14:36:21 +00:00
Michael
a9990db98c Clean the worker queue directly from cron 2022-05-02 05:16:02 +00:00
Michael
13e4144ba6 Use a centralized function to check the priority 2022-05-01 09:29:31 +00:00
Michael
f7b6507438 More checks for strange priorities 2022-05-01 08:58:48 +00:00
Michael
e19681684b Fix worker priorities 2022-05-01 06:57:29 +00:00
Hypolite Petovan
48e2963ac7 Remove unused variable in Core\Worker::defer 2022-02-24 09:35:54 -05:00
Philipp
322b7c856c
Merge pull request #11129 from urbalazs/copyright-2022
Update copyright
2022-01-02 09:45:35 +01:00
Balázs Úr
e56a53647b Update copyright 2022-01-02 08:27:47 +01:00
Hypolite Petovan
80da47921e Replace references to UTC_TIMESTAMP in SQL queries with a DateTimeFormat generated parameter 2021-12-04 17:53:08 -05:00
Philipp
c2b5eb2838
Improve repository usage 2021-11-05 20:52:34 +01:00
Philipp
63960bca05
Update src/Core/Worker.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
2021-11-05 20:52:33 +01:00
Philipp
a7487ee50d
Fix PID at forking 2021-11-05 20:52:31 +01:00
Philipp
32f0c3fb9c
Adds DI::flushLogger() to renew Logger instances 2021-11-05 20:52:31 +01:00
Philipp
7637ae1dcc
Fixup command argument 2021-11-05 20:52:31 +01:00
Philipp
38f70cc55a
Refactor Process for new paradigm 2021-11-05 20:52:28 +01:00
Michael
63da4a75e9 The boot.php had been cleared of most functions 2021-11-04 20:29:59 +00:00
Hypolite Petovan
f80478f262 Improve argument handling in Core\Worker::add
- The argument name made it unclear the first argument is supposed to be a priority number
2021-10-16 19:19:56 -04:00
Michael
27b9da3df5 replace "p" with higher level database functions 2021-10-12 05:53:29 +00:00
Hypolite Petovan
6db211568a Remove most calls to date_default_timezone_* calls
- It was wrongly used to set the node-wide ot user-specific timezone
- It is now fully managed from the App object
- Add a static variable to DateTimeFormat maintain the convenient local() method
2021-10-03 13:42:31 -04:00