-
Notifications
You must be signed in to change notification settings - Fork 13
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support configurable timeout #62
Conversation
Signed-off-by: Rupal Mahajan <maharup@amazon.com>
Signed-off-by: Rupal Mahajan <maharup@amazon.com>
CI failure not related to this change. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
also update the user guide?
src/arguments.js
Outdated
@@ -67,7 +67,10 @@ async function getCommandArguments() { | |||
.env(ENV_VAR.EMAIL_NOTE)) | |||
.addOption(new Option('--selfsignedcerts <flag>', 'enable or disable self-signed certicates for smtp transport') | |||
.default(DEFAULT_SELF_SIGNED_CERTIFICATES) | |||
.choices(['true', 'false'])); | |||
.choices(['true', 'false'])) | |||
.addOption(new Option('--timeout <timeout>', 'timeout for generating report') |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it might be better to include the unit in the option name (--timeout-ms
) or in the description
Signed-off-by: Rupal Mahajan <maharup@amazon.com>
done
Included timeout unit in description |
USER_GUIDE.md
Outdated
@@ -41,6 +41,7 @@ Option | Default Value | Valid Options | Environment Variable | Description | |||
--subject | This is an email containing your dashboard report | - | OPENSEARCH_SUBJECT | subject for the email | |||
--note | Hi,\nHere is the latest report! | string or path to text file | OPENSEARCH_EMAIL_NOTE | The email body | |||
--selfsignedcerts | false | true, false | - | enable or disable self-signed certicates for smtp transport | |||
--timeout | 300000ms | - | OPENSEARCH_TIMEOUT | timeout for generating report in ms |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the value shouldn't contain ms
or does it not matter?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Good catch. the value shouldn't contain ms
.
Signed-off-by: Rupal Mahajan <maharup@amazon.com>
Description
Issues Resolved
#61
By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.