Merge pull request #5674 from jakemcdermott/fix-5142-2

Set reasonable default for MAX_FORKS

Reviewed-by: https://github.com/apps/softwarefactory-project-zuul
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-01-16 00:12:43 +00:00 committed by GitHub
commit f911fb2046
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -615,14 +615,15 @@ register(
category=_('Jobs'),
category_slug='jobs',
)
register(
'MAX_FORKS',
field_class=fields.IntegerField,
allow_null=False,
default=0,
default=200,
label=_('Maximum number of forks per job.'),
help_text=_('Saving a Job Template with more than this number of forks will result in an error. '
'When set to 0 (the default), no limit is applied.'),
'When set to 0, no limit is applied.'),
category=_('Jobs'),
category_slug='jobs',
)