-
Notifications
You must be signed in to change notification settings - Fork 1
Update Context to be thread-safe #44
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
Comments
Execution of pipeline.py had errors coming from the contents of the context being mismatched with the keys written by previous stages, so when a subsequent parameterized flow requested an expected key, that failed:
This was seen when the pipeline was submitted to helm deployment of prefect-server, but not when running in a local process ( |
- Add prefect_sqlalchemy dependencies (#44)
The context was updated to store information in a database (defaulting to sqlite). The information is saved in the database and read from the database as needed. Here is an example of the resulting stored information:
|
Using the throwaway branch I tested the new context backend by running pipeline.py in both a k3d and local deployment, and saw that exception no longer occurs. |
I ran the same tests as @amcnicho on my machine and can confirm that the exception no longer occurs. |
Uh oh!
There was an error while loading. Please reload this page.
Objective
Update the Context mechanism for the Prefect workflow to be thread-safe. The current design is not thread-safe, as indicated from testing during the previous sprint.
Some potential ideas for an approach are here: context
Requirements
Key Decision Points
Some possibilities include:
The text was updated successfully, but these errors were encountered: