Giter Site home page Giter Site logo

Comments (14)

robfig avatar robfig commented on September 20, 2024 2

This feature was added in 2b666ea

Please let me know if it does not meet your needs.

from cron.

robfig avatar robfig commented on September 20, 2024

Hm, what would the identifier be?

from cron.

cgyy avatar cgyy commented on September 20, 2024

just like this, when a entry adde to cron, then generate a UUID or some randome string in the entry

from cron.

robfig avatar robfig commented on September 20, 2024

That's a good idea. It could even just be an incrementing integer

from cron.

elgs avatar elgs commented on September 20, 2024

Any update for the RemoveJob? I think the RemoveJob function will help cron to be really useful library for Golang.

from cron.

ahall avatar ahall commented on September 20, 2024

+1

from cron.

elgs avatar elgs commented on September 20, 2024

I have implemented RemoveFunc, PauseFunc and ResumeFunc and created pull request, waiting for @robfig to merge. But it's less likely to happen as this project seems to be less active in development now, though the code is very useful. Here are the links:
https://github.com/elgs/cron
https://github.com/robfig/cron/pull/15/files

from cron.

ahall avatar ahall commented on September 20, 2024

Brilliang @eigs. I use this library in many projects to do all the scheduling of background tasks.

from cron.

elgs avatar elgs commented on September 20, 2024

Thanks @ahall. This is totally awesome library. I hope robfig will consider to merge the RemoveFunc, PauseFunc and ResumeFunc to the code.

from cron.

elgs avatar elgs commented on September 20, 2024

@ahall but be careful, if you use my code, the AddFunc returns a jobId int, and the error, as opposed to the original error, the jobId is the handler for you to reference the job instance when you want to Remove, Pause or Resume the job in the future. This actually has changed the AddFunc return values.

from cron.

ahall avatar ahall commented on September 20, 2024

Thanks @elgs. Yes, what you're doing makes sense!

from cron.

DAddYE avatar DAddYE commented on September 20, 2024

Any update on this? I need that too :(

from cron.

cgyy avatar cgyy commented on September 20, 2024

Yes, thanks, It's a great job!

from cron.

boernd avatar boernd commented on September 20, 2024

Is this feature just available in the v2 branch and no tagged versions?

from cron.

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.