Skip to content

bug: the _pre_delete_checks doesn't respect the ChangeMessageVisibilityTimeout #12954

@woodywei

Description

@woodywei

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

Delete message will error out after changing the visibiliity time out as it is still using inital start time from receipt handle to validate.

https://github.com/localstack/localstack/blob/main/localstack-core/localstack/services/sqs/models.py#L1012

#12442

Expected Behavior

Should be able to delete the message after changing the visibility timeout

How are you starting LocalStack?

Custom (please describe below)

Steps To Reproduce

How are you starting localstack (e.g., bin/localstack command, arguments, or docker-compose.yml)

I'm using helm chart with tilt
helm_remote(
'localstack',
'https://localstack.github.io/helm-charts',
namespace='localstack',
values=[os.path.dirname(file) + '/localstack/values.yaml'],
)

Environment

- OS: windows
- LocalStack:
  LocalStack version: 4.7.1.dev12
  LocalStack Docker image sha: 
  LocalStack build date: 2025-08-04 
  LocalStack build git hash: 9dd048cda

Anything else?

Please use the self.visibility_deadline in _pre_delete_checks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    aws:sqsAmazon Simple Queue Servicestatus: backlogTriaged but not yet being worked ontype: bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions