Commit dc645de8 authored by BERJON Matthieu's avatar BERJON Matthieu
Browse files

Merge branch 'fix-webapp-create-memory-exhaustion' into 'django'

fix memory exhaustion on webapp creation

See merge request !135
parents 495cfa64 39c44ccd
Pipeline #40905 failed with stage
in 1 minute and 2 seconds
......@@ -201,7 +201,7 @@ class WebappForm(forms.ModelForm):
# - value is converted into bytes
return (self.cleaned_data["memory_limit_mb"]
if request.user.is_superuser
else config.env.ALLGO_WEBAPP_DEFAULT_MEMORY_LIMIT_MB
else int(config.env.ALLGO_WEBAPP_DEFAULT_MEMORY_LIMIT_MB)
) * 1024**2
class Meta:
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment