Is it possible to decide at run-time wether i want to delete a message or not?
i.e.: in my SQS, events are injected that should be process after a given timestamp (this is how it works).
When i listen for messages, all messages get deleted if i use force_delete=True.
By contrast, if I use force_delete=False, no message is ever deleted.
ps: I tried returning False on the message_handler when i do NOT want the message deleted, but it doesn't seem to change the behaviour.
Is it possible to decide at run-time wether i want to delete a message or not?
i.e.: in my SQS, events are injected that should be process after a given timestamp (this is how it works). When i listen for messages, all messages get deleted if i use
force_delete=True
. By contrast, if I useforce_delete=False
, no message is ever deleted.ps: I tried returning
False
on themessage_handler
when i do NOT want the message deleted, but it doesn't seem to change the behaviour.Thanks for your help!