Adds configuration for addon validator timeout
This commit is contained in:
Родитель
9571c6b0da
Коммит
9a70733212
|
@ -149,7 +149,8 @@ def run_validator(file_path, for_appversions=None, test_all_tiers=False,
|
|||
determined=test_all_tiers,
|
||||
approved_applications=apps,
|
||||
spidermonkey=settings.SPIDERMONKEY,
|
||||
overrides=overrides)
|
||||
overrides=overrides,
|
||||
timeout=settings.VALIDATOR_TIMEOUT)
|
||||
|
||||
|
||||
@task(rate_limit='4/m')
|
||||
|
|
|
@ -1133,6 +1133,8 @@ QUNIT_TEST_DIRECTORY = os.path.join(MEDIA_ROOT, 'js', 'zamboni', 'tests')
|
|||
# binary. It must be a version compatible with amo-validator
|
||||
SPIDERMONKEY = None
|
||||
VALIDATE_ADDONS = True
|
||||
# Number of seconds before celery tasks will abort addon validation:
|
||||
VALIDATOR_TIMEOUT = 30
|
||||
|
||||
# When True include full tracebacks in JSON. This is useful for QA on preview.
|
||||
EXPOSE_VALIDATOR_TRACEBACKS = False
|
||||
|
|
Загрузка…
Ссылка в новой задаче