Jaymon / morp

Python message passing wrapper around Amazon SQS
MIT License
1 stars 1 forks source link

create a way to delay a message for processing later #8

Closed Jaymon closed 7 years ago

Jaymon commented 8 years ago

Right now there is no way to say "I don't want to ack this message but I don't want to release it right away either" but this could work if you had some exception, similar to endpoints' CallStop that morp would catch on the back end and use to set the next time it should be processed, so you could do something like:


with Message.recv_block() as m:
  raise Morp.Retry(86400) # don't try and process this message again for 1 day

With SQS, this would be just changing the message visibility to whatever and then never acking it I think.