Giter Club home page Giter Club logo

Comments (2)

edgurgel avatar edgurgel commented on June 26, 2024 1

Hey @juddey!

Yeah so from what I recall the only way to delete from a Redis set is by using the exact item as reference. To remove based on the job_id we would need to scan through all items until the job_id is found. I think we ended up not implementing this because it could be a very slow operation.

I'm happy to accept a PR that deletes a job based on the ID. We can probably have docs explaining that this might be a really slow operation?

One can implement it now using range function to enumerate all jobs until the job_id is found and then delete using the item?

from verk_web.

juddey avatar juddey commented on June 26, 2024

Thanks for the info @edgurgel, thought there must have been some reason why you're deleting using the whole job. For my use case I'm not too worried that it would be slow.

I'll close this off now 'cause I'm not sure if I'll get to implementing a PR in a timely fashion, and there's nothing worse than having open issues hanging around.

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.