Giter VIP home page Giter VIP logo

Comments (4)

meawadhesh avatar meawadhesh commented on August 18, 2024 1

Hi,
Thanks for the reply. I'll implement this asap.

from redis-smq.

weyoss avatar weyoss commented on August 18, 2024

@meawadhesh Hey! Thank you for opening this issue.

Hi, thanks for the amazing library.

I am glad that you are using it.

I scheduled message at particular time and i would like to delete after 1 execution of scheduled time in consumer consumer.consume here i have message with dynamic data. how to delete a particular message?

There are 2 types of scheduled messages:

  • Periodic Scheduled Messages: Messages that are scheduled to be delivered periodically using setScheduledRepeat() or setScheduledCRON().

  • One Time Scheduled Messages: Any other messages that are scheduled to be delivered at a given timestamp.

A one time scheduled message is deleted from the scheduled messages queue once its scheduled timestamp expires. So there is no need to manually delete it.

A periodic scheduled message can be deleted from scheduled messages queue by its ID using MessageManager.prototype.scheduledMessages.delete().

from redis-smq.

weyoss avatar weyoss commented on August 18, 2024

A one time scheduled message is deleted from the scheduled messages queue once its scheduled timestamp expires. So there is no need to manually delete it.

it is worth to mention that a one time scheduled message can also be manually deleted, given that at the deletion time the message is still in the scheduled messages queue.

from redis-smq.

weyoss avatar weyoss commented on August 18, 2024

Closing as resolved.

from redis-smq.

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.