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

avoid fetching information unnecessarily when rerun env #3515

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

Conversation

LiliDeng
Copy link
Collaborator

No description provided.

@LiliDeng LiliDeng requested a review from squirrelsc as a code owner November 15, 2024 14:01
self._environment_information = self.environment.get_information()
# avoid fetching information unnecessarily when rerun env
force_run = True
if (
Copy link
Member

Choose a reason for hiding this comment

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

The if block needs more explanation to understand what's the problem is fixed. so it won't be confused in future.

@kamalca
Copy link
Collaborator

kamalca commented Nov 15, 2024

@LiliDeng
Can you help me understand what state the environment is in when it is returning incomplete info from environemnt.get_info()?

Why is it not possible to fix environemnt.get_info() such that it will always return correct and complete information without needing to rely on cache.

I am fine with relying on cache to save time, but we should not rely on cache for correctness. We should aim for environemnt.get_info(force_run=True) to always return correct and complete information if possible.

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.

3 participants