Giter Club home page Giter Club logo

Comments (8)

Hexagon avatar Hexagon commented on May 29, 2024 1
  1. Fixed in 6.0.1

from croner.

Gabriel3232 avatar Gabriel3232 commented on May 29, 2024 1

Unless you want to tackle this sooner, can probably make a PR before end of week

from croner.

Hexagon avatar Hexagon commented on May 29, 2024 1

Working on this right now 🏗️

from croner.

Hexagon avatar Hexagon commented on May 29, 2024
  1. Nice finding, will fix asap!

  2. There could be use cases where it's usable to leave the job in the array, so that the user can see that the job has existed but is stopped. However, it would be nice to have an additional method .destroy() which unlinks the job from the array, allowing it to be re-registered and garbage-collected. Will put this on the to-do-list if you're not up to it (?).

from croner.

Gabriel3232 avatar Gabriel3232 commented on May 29, 2024

There could be use cases where it's usable to leave the job in the array, so that the user can see that the job has existed but is stopped

I don't think there's a way right now to check is a Job has been stopped. To support that use case, would a new method like this makes sense?

isStopped() {
    return this._states.kill;
}

from croner.

Hexagon avatar Hexagon commented on May 29, 2024

Yep, that would make sense 👍

from croner.

Hexagon avatar Hexagon commented on May 29, 2024

Pre-released in 6.0.2-dev.0

from croner.

Hexagon avatar Hexagon commented on May 29, 2024

Released in 6.0.2

from croner.

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.