Update ressource requirements.

This commit is contained in:
Patrick Jentsch 2019-08-09 09:13:12 +02:00
parent 388e0433fd
commit 1d6f1a8933

View File

@ -18,8 +18,8 @@ def ocr():
ocr_job = Job(creator=current_user._get_current_object(),
description=new_ocr_job_form.description.data,
service="ocr",
ressources=json.dumps({"n_cores": 2,
"mem_mb": 4096}),
ressources=json.dumps({"n_cores": 4,
"mem_mb": 8192}),
service_args=json.dumps({"args": ["--keep-intermediates",
"--skip-binarisation"],
"lang": new_ocr_job_form.language.data,
@ -71,8 +71,8 @@ def nlp():
nlp_job = Job(creator=current_user._get_current_object(),
description=new_nlp_job_form.description.data,
service="nlp",
ressources=json.dumps({"n_cores": 1,
"mem_mb": 2048}),
ressources=json.dumps({"n_cores": 2,
"mem_mb": 4096}),
service_args=json.dumps({"args": [],
"lang": new_nlp_job_form.language.data,
"version": new_nlp_job_form.version.data}),