changeset 5471:1faca2dd45d2

limit number of retries to 200 and set minumum wait to 5s.
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 20 Jul 2021 09:45:16 +0200
parents 5000f8e8a4f1
children 9321d9fb719f
files client/src/components/importconfiguration/ScheduledImports.vue
diffstat 1 files changed, 11 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/importconfiguration/ScheduledImports.vue	Mon Jul 19 17:59:37 2021 +0200
+++ b/client/src/components/importconfiguration/ScheduledImports.vue	Tue Jul 20 09:45:16 2021 +0200
@@ -411,6 +411,8 @@
                   class="mr-1 form-control form-control-sm"
                   v-tooltip.bottom="ttRetries"
                   type="number"
+                  max="200"
+                  min="0"
                 />
               </div>
             </div>
@@ -422,6 +424,8 @@
               </div>
               <div>
                 <input
+                  type="number"
+                  min="5"
                   :disabled="!retry"
                   style="width:120px;"
                   v-model="waitRetry"
@@ -563,7 +567,7 @@
     },
     retry() {
       if (!this.retry) {
-        this.trys = 0;
+        this.trys = null;
         this.waitRetry = "";
       }
     }
@@ -679,19 +683,19 @@
       )}<ul><li>${this.$gettext("60 for 60 Seconds ")}
       </li><li> ${this.$gettext("30m for 30 Minutes")}</li><li> ${this.$gettext(
         "2h45m for for two hours and 45 Minutes"
-      )}</li></ul></div>`;
+      )}</li><li>${this.$gettext("At least 5 Seconds ")}
+      </li></ul></div>`;
     },
     ttRetries() {
       return ` ${this.$gettext("Maximum retry count")}<br> ${this.$gettext(
         "If there is no error during import, there will be no retry"
       )}
-        <br><div style="margin-left:45px;text-align:left;"<ul><li> ${this.$gettext(
-          "Negative values mean endless retry"
-        )}
-        </li><li> ${this.$gettext("0 means no retry")}</li><li> ${this.$gettext(
+        <br><div style="margin-left:45px;text-align:left;"<ul>
+        <li> ${this.$gettext("0 means no retry")}</li><li> ${this.$gettext(
         "Positive values are the upper limit for retries"
       )}
-        </li></ul></div>`;
+        </li><li>${this.$gettext("Maximum of 200")}
+      </li></ul></div>`;
     },
     ttRetry() {
       return this.$gettext("retryDescription");