Giter Site home page Giter Site logo

Comments (7)

tomkralidis avatar tomkralidis commented on August 29, 2024

The hard truth of this issue is that it's a reality of using SQLite3 as the DB. I think the workaround here would be to use PostgreSQL or something similar?

from geohealthcheck.

justb4 avatar justb4 commented on August 29, 2024

Possibly related: we find problems that the database is locked for writing when for some reason one of the remote services keeps holding the connection, sometimes for over 5 mins.

What I see in models.py is that a DB.session.commit() is done after all runs have completed where for each run a DB.session.add() is done. In general that can take quite a while. I've also noticed that adding/updating resources on the hour may cause failures.

So the root cause is I think the long transaction/lock (during entire models.py run).

A possible fix would be to have multiple short-lived transactions, one for each run just after completion of the run. I don't know what the performance impact would be, but this would make editing IMO at least less failure-prone.

from geohealthcheck.

justb4 avatar justb4 commented on August 29, 2024

Added a fix as described in my comment above: tested: managing (add/delete) Resources during healthcheck run is not a problem anymore in our case. Please test. Also added some print output showing Run timings and status.

from geohealthcheck.

justb4 avatar justb4 commented on August 29, 2024

@samperd does the fix work for you? You can test by adding resources while GHC is running checks.

from geohealthcheck.

samperd avatar samperd commented on August 29, 2024

@justb4 Thanks for applying this fix. I will work towards checking out this fix.

from geohealthcheck.

justb4 avatar justb4 commented on August 29, 2024

@samperd any news? Can we hopefully close the issue?

from geohealthcheck.

justb4 avatar justb4 commented on August 29, 2024

We assume the above fix works, at least for us it did. Closing issue, pls reopen if problem still exists.

from geohealthcheck.

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.