Comments (4)
@r0rshark it happens, as mentioned in the exception, when one sqlite3 db connection is used by multiple threads. As long as we performs mutations atomically, we should be good for this solution here: https://stackoverflow.com/a/48234567
ie,
suppress the exception(s).
How does that sound, or should we recreate the connection each time?
from pyre-check.
Got it I am still not sure about which are the two threads. My guess is that one is the thread of the main application where the db is created https://github.com/facebook/sapp/blob/master/sapp/ui/server.py#L65 and the other one is the flask server running. In this case I guess it should not be a problem since all the mutation happen in the flask application
from pyre-check.
Yeah my assumption is the same. Making a PR :)
from pyre-check.
Closed via facebook/sapp@bc72d51
from pyre-check.
Related Issues (20)
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/quantization/fx/fusion_patterns.py`
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/quantization/fx/match_utils.py`
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/quantization/fx/qconfig_utils.py` HOT 3
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/quantization/fx/quantization_patterns.py`
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/quantization/fx/utils.py` HOT 1
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/quantization/quantize_fx.py` HOT 2
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/storage.py`
- [Fall 2021] Step 1: Pyre - Fix type checking errors in Pytorch `torch/utils/hipify/hipify_python.py` HOT 1
- [Fall 2021] Step 3: Build a Pysa Playground/Sandbox to allow users to try out Pysa
- [Fall 2021] Step 3: Automate Pysa Quickstart guide for new users to quickly initialize a environment for Pysa HOT 4
- [Fall 2021] Step 3: Differentiate between module not being in environment and functions not being in environment errors HOT 1
- [Fall 2021] Step 3: Add a `pyre validate-taint-config` command and make errors in taintConfiguration.ml typed HOT 3
- [Fall 2021] Step 3: Add Python and third-party library version information to our Pysa models HOT 5
- [Fall 2021] Step 1: Pyre - Add explicit type annotations in Pytorch HOT 4
- [Fall 2021] Step 3: Clean up unclassified errors in the model parser HOT 2
- [Fall 2021] Step 3: Add an `AllOf` constraint to the Pysa DSL HOT 1
- [Fall 2021] Step 3: Add validation for taint.config files HOT 1
- [Fall 2021] Step 3: List running servers when `pyre` command is ambiguous
- [Fall 2021] Step 3: Run Pysa on open source projects HOT 2
- Log issues to .pyre/pyre.stderr
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pyre-check.