Merge pull request #6116 from annando/remove-user

Avoid a blocked workerqueue due to removed users
This commit is contained in:
Hypolite Petovan 2018-11-12 00:11:51 -05:00 committed by GitHub
commit 67f4fdab32
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ class RemoveUser {
do { do {
$items = Item::select(['id'], $condition, ['limit' => 100]); $items = Item::select(['id'], $condition, ['limit' => 100]);
while ($item = Item::fetch($items)) { while ($item = Item::fetch($items)) {
Item::deleteById($item['id'], PRIORITY_LOW); Item::deleteById($item['id'], PRIORITY_NEGLIGIBLE);
} }
DBA::close($items); DBA::close($items);
} while (Item::exists($condition)); } while (Item::exists($condition));