Skip to content
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

Added Timeout Configuration #228

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Added Timeout Configuration #228

wants to merge 1 commit into from

Conversation

nikvpat
Copy link

@nikvpat nikvpat commented Jan 24, 2025

Description of changes:
Added the option for users to let there be a timeout after each call. Default is set to 1 second

By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.

…tween calls

Added configuration option so that users can customize the timeout between calls

Added Tiemout option

Added Timeout Option

Added Timeout Option Configuration
@nikvpat nikvpat requested a review from a team as a code owner January 24, 2025 21:03

if (isNaN(timeout) || (timeout < 0)) {
timeout = 1000;
setDefaultAutoSelectFamilyAttemptTimeout(timeout);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Would you mind adding unit tests that tests this functionality?

@@ -16,6 +16,12 @@ inputs:
description: '(Optional) Transforms environment variable name. Options: uppercase, lowercase, none. Default value: uppercase.'
required: false
default: 'uppercase'
auto-select-family-attempt-timeout:
description: '(Optional) Timeout in milliseconds for each attempt to retrieve a secret from a secret family. Default value: 1000'
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is node documentation talking about autoSelectFamily. Would you mind trying to use it as base for the description of this field (and documentation). Try to summarize what it does and when should customer use it (also you have typo in select family vs secret family).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants