Skip to content

v2.0.0 - 2022-01-16

Compare
Choose a tag to compare
@sjakthol sjakthol released this 16 Jan 12:29
· 482 commits to main since this release

Changed

  • Breaking: Replace the consume() method with a receive_message() method. Update your code from

    batch = aws_sqs_batchlib.consume(
        queue_url, batch_size=100, maximum_batching_window_in_seconds=15
    )

    to

    batch = aws_sqs_batchlib.receive_message(
        QueueUrl=queue_url, MaxNumberOfMessages=100, WaitTimeSeconds=15
    )
  • Use modern Amazon SQS service endpoints by default to support VPC endpoints.

Added

  • delete_message_batch(): Add session argument for providing a custom boto3 Sessions for the library.
  • delete_message_batch(): Add support for FIFO queues.
  • delete_message_batch(): Automatically retry failed delete operations if the failure is retryable.
  • receive_message(): Add new receive_message() method to receive an arbitrary number of messages from Amazon SQS.
  • receive_message(): Add session argument for providing a custom boto3 Sessions for the library.
  • receive_message(): Add support for FIFO queues.
  • send_message_batch(): Add new send_message_batch() method to send an arbitrary number of messages to Amazon SQS.
  • send_message_batch(): Add session argument for providing a custom boto3 Sessions for the library.
  • send_message_batch(): Add support for FIFO queues.
  • send_message_batch(): Automatically retry failed send operations if the failure is retryable.

Fixed

  • receive_message(): Generate unique ReceiveRequestAttemptId parameter for each distinct ReceiveMessage API call
    if ReceiveRequestAttemptId is provided to receive_message().

All Changes: v1.1.0...v2.0.0