Coder Social home page Coder Social logo

Comments (3)

hotwater9 avatar hotwater9 commented on June 21, 2024

I run into the same problems as you, I do the same on my server. But when they work correctly for a while, the problem randomly arises. Nothing happens to the analysis log, as if the lock really expired and disappeared, but shouldn't it be renewed all the time?
So I was wondering if you found the problem?

from redbeat.

cikay avatar cikay commented on June 21, 2024

I run into the same problems as you, I do the same on my server. But when they work correctly for a while, the problem randomly arises. Nothing happens to the analysis log, as if the lock really expired and disappeared, but shouldn't it be renewed all the time? So I was wondering if you found the problem?

I extend RedBeatScheduler and set max_interval to 10 it works.

from redbeat.schedulers import RedBeatScheduler as BaseScheduler

class RedBeatScheduler(BaseScheduler):
    max_interval = 10

It raises the error when waiting too much like minutes. Remember that you have to specify the extended schedule when running the beat something like below.

pipenv run celery beat --scheduler=<file_name>:RedBeatScheduler

from redbeat.

hotwater9 avatar hotwater9 commented on June 21, 2024

but doesn't redbeat already have an automatic extension? If I remember correctly, when my scheduled task had to wait too long, it would only wait(sleep) five minutes by default. Do you mean I should set the default time to be shorter?

from redbeat.

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.