-
Notifications
You must be signed in to change notification settings - Fork 15
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
Broken global state between Hydra runs #574
Comments
That is weird. I'll try to look at it this afternoon. |
@jgbos I think there is a real issue here, although I'm unsure what the culprit is. I'd like to get a fix in for launch before v0.12 is released. Any chance you'd be able to take a look this week? |
I am actually less sure that this is a "real" issue in that I do not think it is affecting every day use of |
This was really hard to repro -- still not sure the circumstances that cause this vs not -- but there is some broken statefulness in Hydra between runs which causes Hydra's store to misbehave with the basic sweeper. Fortunately there is a simple fix - running the following clears ~all global state from Hydra! from hydra.core.singleton import Singleton
# this should go in a `finally:` after each launch call
Singleton._instances.clear() Because this clears all global state, Hydra will populate everything anew on subsequent runs. We should clear state this way within |
I don't know what is going on here. It only occurs for pre-release, and re-running the job often fixes it. It occurs in
tests/test_launch/test_validation.py
and is caused by:@jgbos any ideas?
The text was updated successfully, but these errors were encountered: