Allow classifying batches of more than 1000 bugs

Since 336d96bdd0, we no longer need to hope we don't
hit the Bugzilla URL limit.
This commit is contained in:
Marco Castelluccio 2020-10-04 12:42:13 +02:00
Родитель d4c3c6ad07
Коммит 6815875c46
1 изменённых файлов: 1 добавлений и 3 удалений

Просмотреть файл

@ -533,7 +533,6 @@ def batch_prediction(model_name):
"bugs": {
"type": "list",
"minlength": 1,
"maxlength": 1000,
"schema": {"type": "integer"},
}
}
@ -566,8 +565,7 @@ def batch_prediction(model_name):
if missing_bugs:
# TODO: We should probably schedule chunks of bugs to avoid jobs that
# are running for too long and reduce pressure on bugzilla, it mights
# not like getting 1 million bug at a time
# are running for too long
schedule_bug_classification(model_name, missing_bugs)
return compress_response({"bugs": data}, status_code)