Giter Site home page Giter Site logo

Comments (3)

agronholm avatar agronholm commented on July 23, 2024

Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):


Why would they want to override compute_next_run_time? That's what triggers are for. This request is not feasible and frankly I don't see much point in it, at least given those arguments.

from apscheduler.

agronholm avatar agronholm commented on July 23, 2024

Original comment by Kevin Palm (Bitbucket: palm_kevin, GitHub: Unknown):


I already have a class containing:

  1. the function to be executed
  2. all schedule information

I wanted to avoid to create a new job-instance, but to use my class instead directly. (avoid to have to handle one more object)

I know the benefit (in my case) isn't very big... (But others could perhaps want to implement some special job specific hings in 'compute_next_run_time' method... )

(Even with jobstores, this feature could be feasible: Instead of using everywhere class 'Job', you could have a property 'apscheduler.jobClass' wich defaults to 'apscheduler.job.Job' but which could be overriden by the user if wanted)

from apscheduler.

agronholm avatar agronholm commented on July 23, 2024

Original comment by Alex Grönholm (Bitbucket: agronholm, GitHub: agronholm):


The Job class was never intended to be subclassed by users. Job stores create Job instances directly from stored data. What are you aiming at with this?

from apscheduler.

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.