Skip to content
This repository has been archived by the owner on Feb 25, 2022. It is now read-only.

Load components from cache when calling error hooks #625

Merged
merged 1 commit into from
Sep 25, 2018

Conversation

Bogdanp
Copy link
Contributor

@Bogdanp Bogdanp commented Sep 19, 2018

This fixes an issue where on_error hooks don't have access to the same component instances as other hooks and handlers. In addition, this may fix other resolution issues/heisenbugs but I was mainly concerned with fixing on_error as any code right now that tries to clean up resources on error (eg. db connections) based on a component instance is probably incorrect.

@Bogdanp
Copy link
Contributor Author

Bogdanp commented Sep 19, 2018

I think this issue was correctly identified in #490, but mistakenly characterised as "fixed". It would appear to be fixed by the change that was made to pass state around, but that isn't the case as you can see from my changes to the injector.

@tomchristie tomchristie merged commit 8efdcdb into encode:master Sep 25, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants