GithubHelp home page GithubHelp logo

Comments (4)

abishekvashok avatar abishekvashok commented on September 13, 2024

@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.

r0rshark avatar r0rshark commented on September 13, 2024

https://stackoverflow.com/a/48234567

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.

abishekvashok avatar abishekvashok commented on September 13, 2024

Yeah my assumption is the same. Making a PR :)

from pyre-check.

abishekvashok avatar abishekvashok commented on September 13, 2024

Closed via facebook/sapp@bc72d51

from pyre-check.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.