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

Use current time when overwriting model configuration. #304

Merged
merged 1 commit into from
Jan 17, 2024

Conversation

whoisj
Copy link
Contributor

@whoisj whoisj commented Dec 20, 2023

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.

MR w/ test code

GuanLuo
GuanLuo previously approved these changes Jan 5, 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.
@whoisj whoisj force-pushed the jwyman/ensemble-config-mtime branch from 1a92a3a to 49bdf3e Compare January 17, 2024 22:32
@whoisj whoisj requested a review from GuanLuo January 17, 2024 22:33
@whoisj whoisj merged commit b487627 into main Jan 17, 2024
1 check passed
whoisj added a commit that referenced this pull request 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.
mc-nv pushed a commit that referenced this pull request 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.
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.

2 participants