Giter Club home page Giter Club logo

Comments (9)

maxim-kht avatar maxim-kht commented on July 30, 2024 1

Resolved in #130

from django-cron.

tab-cmd avatar tab-cmd commented on July 30, 2024

@mikicz can I have a little more information about your implementation? I am having trouble replicating

from django-cron.

mikicz avatar mikicz commented on July 30, 2024

Hi, I think I just followed the tutorial and documentation and did no modyfing, this really occured once after many months of production runtime and never happen since, I don't know if its worth trying to replicate...

from django-cron.

evenicoulddoit avatar evenicoulddoit commented on July 30, 2024

I also just received this. Interesting,

from django-cron.

tbarbugli avatar tbarbugli commented on July 30, 2024

I think there is a race condition around lock release and lock acquisition failed message.

Say you have 2 processes trying to run the same job A and B

A. acquire lock
A. run job
B. acquire lock
A. release lock
B. read lock value

from django-cron.

msopko81 avatar msopko81 commented on July 30, 2024

I had this error occur today and wanted to say what I saw. I am using this on Windows through the task scheduler and have it set to run every 5 mins. For some reason, Windows did not run the script at 1:50 PM. I think it then tried to run it twice at 1:56 PM.

I also think that the first process messed up the second process in more than 1 way. It was trying to run a job at 1:50 PM that was scheduled for 4 AM. The only time I saw something like this happen, I had an issue with the backend (e.g. database was down so it attempted to run all of the jobs).

So, I guess what I am trying to say is that this issue may be with the OS or with the cache backend.

from django-cron.

agronick avatar agronick commented on July 30, 2024

We run a lot of jobs and I'm getting this error at least every day, sometimes multiple times a day. Any idea when this will be fixed in pip?

from django-cron.

tbarbugli avatar tbarbugli commented on July 30, 2024

@agronick do you have more than 1 process/server running the cron command?

from django-cron.

agronick avatar agronick commented on July 30, 2024

Just one but they run all the time. I think the problem is that maybe 1 out of every 500 jobs finishes between the time when that cache key is checked and when it is read the second time.

from django-cron.

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.