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

DM-42937: Accept timedelta config values as strings #154

Merged
merged 1 commit into from
Feb 20, 2024
Merged

Conversation

rra
Copy link
Member

@rra rra commented Feb 19, 2024

The conversion to the new pydantic-settings module and use of proper timedelta data types for configuration options meant that parsing of number of seconds as strings from environment variables broke. Add a field validator to convert strings to integers so that they'll be parsed correctly.

The conversion to the new pydantic-settings module and use of proper
timedelta data types for configuration options meant that parsing of
number of seconds as strings from environment variables broke. Add a
field validator to convert strings to integers so that they'll be
parsed correctly.
@rra rra merged commit 5a262f1 into main Feb 20, 2024
3 checks passed
@rra rra deleted the tickets/DM-42937 branch February 20, 2024 00:13
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.

1 participant