From 7d29854537cf566294fc04c495061e1bbce8b9f1 Mon Sep 17 00:00:00 2001 From: John Cardinal Date: Wed, 29 Dec 2021 16:28:07 +0000 Subject: [PATCH] --- .../docs/ops-config-report-rendering-timeout.md | 11 ++++------- server/AyaNova/util/ServerBootConfig.cs | 2 +- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/docs/8.0/ayanova/docs/ops-config-report-rendering-timeout.md b/docs/8.0/ayanova/docs/ops-config-report-rendering-timeout.md index 7ce0da20..d6f35af9 100644 --- a/docs/8.0/ayanova/docs/ops-config-report-rendering-timeout.md +++ b/docs/8.0/ayanova/docs/ops-config-report-rendering-timeout.md @@ -34,9 +34,6 @@ If no override is specified AyaNova will use the following default value: This means AyaNova will wait for a prior report to complete for no longer than 5 minutes before it will stop and return an error. -## MINIMUM / MAXIMUM - -There is a hard limit of 15 minutes built into AyaNova so specifying a value greater than 15 minutes will be ignored and 15 minutes used instead. Specifying a value less than 1 minute will be automatically changed to 1 minute as the minimum allowed value. ## Overriding @@ -53,20 +50,20 @@ Example config.json entry ```json { ...other properties... - "AYANOVA_REPORT_RENDERING_TIMEOUT": "4" + "AYANOVA_REPORT_RENDERING_TIMEOUT": "10" } ``` Example command line parameter -`ayanova.exe --AYANOVA_REPORT_RENDERING_TIMEOUT="5` +`ayanova.exe --AYANOVA_REPORT_RENDERING_TIMEOUT="10` Example environment variable Windows -`set "AYANOVA_REPORT_RENDERING_TIMEOUT=4"` +`set "AYANOVA_REPORT_RENDERING_TIMEOUT=10"` Linux / MAC -`export AYANOVA_REPORT_RENDERING_TIMEOUT="12"` +`export AYANOVA_REPORT_RENDERING_TIMEOUT="10"` diff --git a/server/AyaNova/util/ServerBootConfig.cs b/server/AyaNova/util/ServerBootConfig.cs index c11d8f84..5093e74c 100644 --- a/server/AyaNova/util/ServerBootConfig.cs +++ b/server/AyaNova/util/ServerBootConfig.cs @@ -183,7 +183,7 @@ namespace AyaNova.Util int? nTemp = config.GetValue("AYANOVA_REPORT_RENDERING_TIMEOUT"); AYANOVA_REPORT_RENDERING_TIMEOUT = (null == nTemp) ? 5 : (int)nTemp;//default is 3 minutes if (AYANOVA_REPORT_RENDERING_TIMEOUT < 1) AYANOVA_REPORT_RENDERING_TIMEOUT = 1; //one minute minimum timeout - if (AYANOVA_REPORT_RENDERING_TIMEOUT > 15) AYANOVA_REPORT_RENDERING_TIMEOUT = 15; //15 minutes maximum timeout + //DB