X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FWorker%2FFetchMissingActivity.php;h=d48d834c672e1a4b8871420465d6744fc07ba539;hb=dfcfae6bcca54a27b1bf5099d96d54f2bba997d3;hp=ceab8b7338430d4a9361be13b8c0cd348049f16b;hpb=c7758331173ec318d5755e943c9abf9eb76a7bcf;p=friendica.git diff --git a/src/Worker/FetchMissingActivity.php b/src/Worker/FetchMissingActivity.php index ceab8b7338..d48d834c67 100644 --- a/src/Worker/FetchMissingActivity.php +++ b/src/Worker/FetchMissingActivity.php @@ -1,6 +1,6 @@ $url]); } elseif (!Worker::defer()) { Logger::info('Activity could not be fetched', ['url' => $url]); - // Possibly we should recursively remove child activities at this point. + + // recursively delete all entries that belong to this worker task + $queue = DI::app()->getQueue(); + if (!empty($queue['id'])) { + Queue::deleteByWorkerId($queue['id']); + } } else { Logger::info('Fetching deferred', ['url' => $url]); }