Giter Club home page Giter Club logo

Comments (4)

keyan avatar keyan commented on June 2, 2024 1

I took a look at this and it looks easy on the VerkWeb side, just adding another column to the retries template here. But it requires support on the Verk end. I see a couple options:

  1. Appending the retry_at time to the job before adding to the retry queue. We would merge the extra item to the job map here.
  2. Adding a new method similar to Verk.SortedSet.range/4 here, but that includes the "SCORE" for each item:
ZRANGE retry start stop WITHSCORES

Then we'd have to add a new method to VerkWeb.RetriesView that takes the list of jobs/scores and merges them in the template.

Any feedback on these approaches? Any preference for one or the other?

from verk_web.

keyan avatar keyan commented on June 2, 2024 1

I should add that I plan on using http://timeago.yarp.com/ or something similar as suggested in #21.

from verk_web.

edgurgel avatar edgurgel commented on June 2, 2024 1

I like the "WITHSCORES" approach 👍

Maybe Verk.SortedSet.range_with_score ? (I'm not the most creative person 😶 )

from verk_web.

keyan avatar keyan commented on June 2, 2024

This is now resolved.

from verk_web.

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.