mirror of
https://github.com/friendica/friendica
synced 2025-04-26 12:30:11 +00:00
LockDriverFixings
- release Locks in case of failures - adding some cache tests
This commit is contained in:
parent
f148dcabc4
commit
bd2b3b1ef5
4 changed files with 27 additions and 5 deletions
|
@ -117,12 +117,14 @@ class Worker
|
|||
// Count active workers and compare them with a maximum value that depends on the load
|
||||
if (self::tooMuchWorkers()) {
|
||||
logger('Active worker limit reached, quitting.', LOGGER_DEBUG);
|
||||
Lock::release('worker');
|
||||
return;
|
||||
}
|
||||
|
||||
// Check free memory
|
||||
if ($a->min_memory_reached()) {
|
||||
logger('Memory limit reached, quitting.', LOGGER_DEBUG);
|
||||
Lock::release('worker');
|
||||
return;
|
||||
}
|
||||
Lock::release('worker');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue