mirror of
https://git.tt-rss.org/fox/tt-rss.git
synced 2025-10-12 19:41:04 +02:00
lock per-feed update processes based on feed ID to reduce possibilty
of concurrent updates
This commit is contained in:
parent
528b387563
commit
0761533d0a
@ -145,13 +145,12 @@ class RSSUtils {
|
|||||||
array_push($batch_owners, $tline["owner_uid"]);
|
array_push($batch_owners, $tline["owner_uid"]);
|
||||||
|
|
||||||
$fstarted = microtime(true);
|
$fstarted = microtime(true);
|
||||||
$my_pid = posix_getpid();
|
|
||||||
|
|
||||||
$quiet = (isset($options["quiet"])) ? "--quiet" : "";
|
$quiet = (isset($options["quiet"])) ? "--quiet" : "";
|
||||||
$log = function_exists("flock") && isset($options['log']) ? '--log '.$options['log'] : '';
|
$log = function_exists("flock") && isset($options['log']) ? '--log '.$options['log'] : '';
|
||||||
$log_level = isset($options['log-level']) ? '--log-level '.$options['log-level'] : '';
|
$log_level = isset($options['log-level']) ? '--log-level '.$options['log-level'] : '';
|
||||||
|
|
||||||
passthru(PHP_EXECUTABLE . " update.php --update-feed " . $tline["id"] . " --pidlock $my_pid $quiet $log $log_level");
|
passthru(PHP_EXECUTABLE . " update.php --update-feed " . $tline["id"] . " --pidlock feed-" . $tline["id"] . " $quiet $log $log_level");
|
||||||
|
|
||||||
/* try {
|
/* try {
|
||||||
self::update_rss_feed($tline["id"], true, false);
|
self::update_rss_feed($tline["id"], true, false);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user