Code Monkey home page Code Monkey logo

Comments (8)

fabiocaccamo avatar fabiocaccamo commented on June 25, 2024

@reitermarkus thank you for reporting this issue.

from django-maintenance-mode.

fabiocaccamo avatar fabiocaccamo commented on June 25, 2024

Depends on fabiocaccamo/python-fsutil#91

from django-maintenance-mode.

fabiocaccamo avatar fabiocaccamo commented on June 25, 2024

@reitermarkus fixed in 0.21.0 version.

from django-maintenance-mode.

reitermarkus avatar reitermarkus commented on June 25, 2024

Thanks! Although I would remove

fabiocaccamo/python-fsutil@6c8a58b#diff-d82a200cf6742866f0d549f5bd4a22416ef6cdbcc1cde15c6b32c64f2663fe70R1330

since this can again have the same race condition and pollute user directories with temporary files.

from django-maintenance-mode.

fabiocaccamo avatar fabiocaccamo commented on June 25, 2024

@reitermarkus for the temp file directory I used the same file directory to ensure that the temporary file is created on the same filesystem of the final file and guarantee atomicity of the replace operation, otherwise there is a potential risk of data corruption or loss.

What do you think is best to do here?

from django-maintenance-mode.

reitermarkus avatar reitermarkus commented on June 25, 2024

Given that the state can only be 0/1, maybe change to simply checking the existence instead of the contents of the file.

from django-maintenance-mode.

fabiocaccamo avatar fabiocaccamo commented on June 25, 2024

The local file backend uses the same logic as the other backends.

from django-maintenance-mode.

fabiocaccamo avatar fabiocaccamo commented on June 25, 2024

@reitermarkus check fabiocaccamo/python-fsutil@11fbc5e

from django-maintenance-mode.

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.