GithubHelp home page GithubHelp logo

Configurable max retries about verk HOT 5 CLOSED

edgurgel avatar edgurgel commented on August 27, 2024 1
Configurable max retries

from verk.

Comments (5)

edgurgel avatar edgurgel commented on August 27, 2024

Yes, I want this feature 👍

Do you have any idea on how to approach? I can spend some time architecting the implementation details

from verk.

mitchellhenke avatar mitchellhenke commented on August 27, 2024

@edgurgel I'm not sure. My initial thought was something like use Verk.Job with a defoverridable max_retry_count function.

from verk.

edgurgel avatar edgurgel commented on August 27, 2024

What would be the most generic way to support this?

What I was thinking was: add a :max_retries key and each job can have a different max_retries. Basically when you schedule the job, the max_retries can be defined? One question would be that the "client" will need to provide this instead of the worker. It's up to discussion as the use case could be different from what I had in mind?

And then use this OR the "global" definition (which could be an Application env also)

What do you reckon?

from verk.

mitchellhenke avatar mitchellhenke commented on August 27, 2024

My use case is that I have a number of different kinds of jobs with a varying amount of times each may be run. I think being able to set it globally, per job type, and per individual job makes sense, and I like the idea of moving it into the Job module/struct. I'm not sure I like requiring it be specified each time, though being able to configure it per job type is probably the most complex option to add.

I'll take a shot at adding global config through application env, and allowing the client to provide on a per job basis, and see how things go.

from verk.

edgurgel avatar edgurgel commented on August 27, 2024

Awesome! And we can probably kinda of do all the things proposed above...

Thanks for starting this work!

from verk.

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.