diff options
| author | 2023-03-31 08:24:31 +0200 | |
|---|---|---|
| committer | 2023-03-31 08:24:31 +0200 | |
| commit | 0f5e321c0b2e368adf493e1e466bec0ff900dcbd (patch) | |
| tree | 34e97a906fff186a156381ab380b8868d2c2b22f /app/Controllers/feedController.php | |
| parent | 288ed04ccc30b58373576dc3be811aee43e67034 (diff) | |
Mutex for actualize script (#5235)
* Simplify extension method
One parameter was not used
Furthermore, that unused parameter was preventing simpler calls (i.e. without a dedicated extension class). Now it is possible to register a call back with a lamda:
```php
Minz_ExtensionManager::addHook('feed_before_actualize', function () {
// Hello
});
```
* Mutex for actualize script
In the case of extremely long cron jobs that are refreshing feeds, a cron job might start before the previous one has completed, leading to an accumulation of cron jobs running in parallel.
Although we already have a mutex preventing concurrency problems on a single feed refresh, the problem occurs in particular if each feed can take a long time (e.g. due to heavy processing, which is my usecase).
https://github.com/FreshRSS/FreshRSS/pull/5234 must be merged first
* Fiw wrong return
Diffstat (limited to 'app/Controllers/feedController.php')
0 files changed, 0 insertions, 0 deletions
