sqs-consumer icon indicating copy to clipboard operation
sqs-consumer copied to clipboard

question: is message in-flight if the async handleMessage() function has not returned yet?

Open upugo-dev opened this issue 7 years ago • 2 comments

Are messages marked as in-flight when sqs-app consumes a message, but the handleMessage function hasn't resolved/returned yet?

upugo-dev avatar May 20 '19 12:05 upugo-dev

A given message will be in-flight when it's been recieved by the handler (but not deleted yet). i.e still processing. The message will be deleted upon successful completion.

nspragg avatar May 20 '19 13:05 nspragg

Thanks for the reply, @nspragg

So no messages will be pulled from the queue while the handler is processing?

I’m having a hard time getting the handler function to actually wait for awaits, which gives the effect of processing multiple messages at once

upugo-dev avatar May 20 '19 15:05 upugo-dev