-
Notifications
You must be signed in to change notification settings - Fork 36
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
Specify provider state after shutdown()
#213
Comments
This effectively disallows providers that would hit some terminal state, they are neither ready, nor could they be initialized again. Potentially this is fine, but I think it is worth an explicit callout. |
I agree, and think that might be optimal. If we go this route, we can note that. Our state diagrams will also be circular, which will communicate the same thing. |
+1 |
In my opinion |
I would be fine with either a terminal state or the requirement for all providers to be able to be reenitialized which would imply the two states |
I am voting for recommending going into a When shutdown is called, the provider is meant to clean up its resources (as per spec The provider MAY define a mechanism to gracefully shutdown and dispose of resources. ). This clearly make them |
That was certainly the case before. The problem is the lack of any prescription here makes things ambiguous. It seems to me that we'd like to make the provider lifecycle as consistent as possible - it's already one of the trickiest areas for provider and SDK implementors. I think we have majority support for shutdown transitioning back to |
@lukas-reining @kinyoklion @justinabrahms and others, please take a look at the associated spec PR if you get a sec: #216 |
We don't currently specify the state of the provider after a
shutdown()
.I'm proposing we should explicitly require (MUST) or suggest (SHOULD) the provider transitions back into either
NOT_READY
(implying that it can be re-initialized) orREADY
(for a provider not requiring initialization) once it has been shut down. I think this is a fairly sensible approach, and will remove this ambiguity in a clean way. Some providers already work this way.Essentially we'd be adding another transition in the state diagram here from
READY
toNOT_READY
viashutdown
.The text was updated successfully, but these errors were encountered: