From 9550da89b3c199582faac545de42da1a4f32ad31 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Thu, 5 Sep 2024 08:28:48 +0000 Subject: [PATCH] Fix zimit usage for --diskUtilization --- dispatcher/backend/src/common/schemas/offliners/zimit.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/dispatcher/backend/src/common/schemas/offliners/zimit.py b/dispatcher/backend/src/common/schemas/offliners/zimit.py index b4fba798..1f5c618d 100644 --- a/dispatcher/backend/src/common/schemas/offliners/zimit.py +++ b/dispatcher/backend/src/common/schemas/offliners/zimit.py @@ -1,11 +1,10 @@ -from marshmallow import fields, validate - from common.schemas import SerializableSchema, String, StringEnum from common.schemas.fields import ( validate_output, validate_zim_description, validate_zim_filename, ) +from marshmallow import fields, validate # https://github.com/puppeteer/puppeteer/blob/main/src/common/DeviceDescriptors.ts # https://github.com/puppeteer/puppeteer/blob/ @@ -419,8 +418,9 @@ class Meta: disk_utilization = fields.Integer( metadata={ "label": "Disk Utilization", - "description": "If set, save state and exit if disk utilization exceeds " - "this percentage value. Defaults to 90", + "description": "Save state and exit if disk utilization exceeds this " + "percentage value. Default (if not set) is 90%. Set to 0 to disable disk " + "utilization check.", }, data_key="diskUtilization", required=False,