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

[cherry-pick] Use current time when overwriting model configuration. (#304) #316

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

whoisj
Copy link
Contributor

@whoisj whoisj commented Jan 17, 2024

This change changes the way model_repository_manager tracks when a model's configuration was last updated. Instead of setting the tracked mtime to zero, the current system time is used. This means that in order to reload the local configuration file, a user will need to "touch" the config.pbtxt file such that its mtime is greater than the mtime recorded when overwriting the model's configuration values and then reload the model.

Test coverage will be added in the next commit.

This change changes the way `model_repository_manager` tracks when a model's
configuration was last updated. Instead of setting the tracked mtime to zero,
the current system time is used. This means that in order to reload the local
configuration file, a user will need to "touch" the config.pbtxt file such that
its mtime is greater than the mtime recorded when overwriting the model's
configuration values and then reload the model.

Test coverage will be added in the next commit.
@whoisj whoisj requested review from nnshah1, GuanLuo and mc-nv January 17, 2024 22:49
@mc-nv mc-nv merged commit 231c48d into r24.01 Jan 17, 2024
1 check passed
@mc-nv mc-nv deleted the whoisj/pick branch January 17, 2024 22:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants