Giter Club home page Giter Club logo

Comments (8)

adrian-gomez avatar adrian-gomez commented on May 24, 2024

Hi'll take a look at this and comment back with my findings.

Thanks for the report.

from sidekiq-scheduler.

adrian-gomez avatar adrian-gomez commented on May 24, 2024

Indeed there was an error and the changes made in to the schedule are lost can you check this PR #36 to see if it would work for you?

To issue a schedule change you have to:

  Sidekiq.set_schedule('some_name', { 'every' => ['1m'], 'class' => 'HardWorker' })

from sidekiq-scheduler.

stephankaag avatar stephankaag commented on May 24, 2024

Seems to work for me.

Only thing i'm wondering is if there should be some kind of tests for this functionality?

from sidekiq-scheduler.

adrian-gomez avatar adrian-gomez commented on May 24, 2024

Yes this was just to test if that would work for you.

I'll add some tests and some kind of helper for testing that a schedule change has been issued.

from sidekiq-scheduler.

stephankaag avatar stephankaag commented on May 24, 2024

Works like a charm 👍

from sidekiq-scheduler.

stephankaag avatar stephankaag commented on May 24, 2024

When will this be merged into master?

from sidekiq-scheduler.

adrian-gomez avatar adrian-gomez commented on May 24, 2024

Can you check the last version of this PR?
I added a test for it and test helper in case anyone wants to the test if their code is issuing schedule changes correctly.

If everything is ok i'll merge this into master and release a new version.

from sidekiq-scheduler.

lucasgomide avatar lucasgomide commented on May 24, 2024

👍 works for me, but i`m waiting for merge

from sidekiq-scheduler.

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.