Git Product home page Git Product logo

Comments (6)

zakird avatar zakird commented on August 21, 2024 1

Master is considered mainline development. We will tag and release when appropriate.

from celerybeat-mongo.

zakird avatar zakird commented on August 21, 2024

We decided to do it this way because then you can have a single collection of scheduled tasks and interact with all tasks in a simple manner. The differences between Interval and Crontab are very small compared to the rest of the class being shared. Can you share a concrete problem this is causing today?

At this point, changing this would be a huge headache for everyone already relying on the project, and there isn't really any other code in the project. I don't mean to sound harsh here, but without a significant compelling reason, it sounds like we'd break a lot of folks setup without much benefit.
As such, it might make the most sense to fork the project if you want to change how the models are constructed, since we'd have to change the rest of the code to accommodate the change anyway.

from celerybeat-mongo.

rafaelreuber avatar rafaelreuber commented on August 21, 2024

You're right this change will not bring such benefits to worth the incompatibility.

from celerybeat-mongo.

rafaelreuber avatar rafaelreuber commented on August 21, 2024

But it's possible to this without break compatibility.

class Crontab(EmbeddedDocument):  
    """Crontab-like schedule."""

class Interval(EmbeddedDocument):
    """Schedule executing on a regular interval."""

class PeriodicTask(DynamicDocument):
    """"MongoDB model that represents a periodic task""""

    class Interval(Interval):
        pass
    class Crontab(Crontab):
        pass

from celerybeat-mongo.

zakird avatar zakird commented on August 21, 2024

If you're able to submit a PR that fixes this and can provide tests that convincingly show that this does not break any existing users' stored schedules, I'm happy to look at. I don't think any of the core team though has the bandwidth to champion this though given that it's not posing any problems for us.

from celerybeat-mongo.

rafaelreuber avatar rafaelreuber commented on August 21, 2024

Nice! By the way would be nice have a development branch.

from celerybeat-mongo.

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.