comparison client/src/components/importconfiguration/ScheduledImports.vue @ 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 064ac1014713
children 7768f14f6535
comparison
equal deleted inserted replaced
5470:5000f8e8a4f1 5471:1faca2dd45d2
409 style="width:120px;" 409 style="width:120px;"
410 v-model="trys" 410 v-model="trys"
411 class="mr-1 form-control form-control-sm" 411 class="mr-1 form-control form-control-sm"
412 v-tooltip.bottom="ttRetries" 412 v-tooltip.bottom="ttRetries"
413 type="number" 413 type="number"
414 max="200"
415 min="0"
414 /> 416 />
415 </div> 417 </div>
416 </div> 418 </div>
417 <div class="flex-column"> 419 <div class="flex-column">
418 <div class="flex-row text-left"> 420 <div class="flex-row text-left">
420 <translate>Wait to retry</translate> 422 <translate>Wait to retry</translate>
421 </small> 423 </small>
422 </div> 424 </div>
423 <div> 425 <div>
424 <input 426 <input
427 type="number"
428 min="5"
425 :disabled="!retry" 429 :disabled="!retry"
426 style="width:120px;" 430 style="width:120px;"
427 v-model="waitRetry" 431 v-model="waitRetry"
428 v-tooltip.bottom="ttWaitRetry" 432 v-tooltip.bottom="ttWaitRetry"
429 class="ml-1 form-control form-control-sm" 433 class="ml-1 form-control form-control-sm"
561 this.simple = "monthly"; 565 this.simple = "monthly";
562 } 566 }
563 }, 567 },
564 retry() { 568 retry() {
565 if (!this.retry) { 569 if (!this.retry) {
566 this.trys = 0; 570 this.trys = null;
567 this.waitRetry = ""; 571 this.waitRetry = "";
568 } 572 }
569 } 573 }
570 }, 574 },
571 computed: { 575 computed: {
677 )}<div style="text-align:left;">${this.$gettext( 681 )}<div style="text-align:left;">${this.$gettext(
678 "Examples:" 682 "Examples:"
679 )}<ul><li>${this.$gettext("60 for 60 Seconds ")} 683 )}<ul><li>${this.$gettext("60 for 60 Seconds ")}
680 </li><li> ${this.$gettext("30m for 30 Minutes")}</li><li> ${this.$gettext( 684 </li><li> ${this.$gettext("30m for 30 Minutes")}</li><li> ${this.$gettext(
681 "2h45m for for two hours and 45 Minutes" 685 "2h45m for for two hours and 45 Minutes"
682 )}</li></ul></div>`; 686 )}</li><li>${this.$gettext("At least 5 Seconds ")}
687 </li></ul></div>`;
683 }, 688 },
684 ttRetries() { 689 ttRetries() {
685 return ` ${this.$gettext("Maximum retry count")}<br> ${this.$gettext( 690 return ` ${this.$gettext("Maximum retry count")}<br> ${this.$gettext(
686 "If there is no error during import, there will be no retry" 691 "If there is no error during import, there will be no retry"
687 )} 692 )}
688 <br><div style="margin-left:45px;text-align:left;"<ul><li> ${this.$gettext( 693 <br><div style="margin-left:45px;text-align:left;"<ul>
689 "Negative values mean endless retry" 694 <li> ${this.$gettext("0 means no retry")}</li><li> ${this.$gettext(
690 )}
691 </li><li> ${this.$gettext("0 means no retry")}</li><li> ${this.$gettext(
692 "Positive values are the upper limit for retries" 695 "Positive values are the upper limit for retries"
693 )} 696 )}
694 </li></ul></div>`; 697 </li><li>${this.$gettext("Maximum of 200")}
698 </li></ul></div>`;
695 }, 699 },
696 ttRetry() { 700 ttRetry() {
697 return this.$gettext("retryDescription"); 701 return this.$gettext("retryDescription");
698 } 702 }
699 }, 703 },