Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace queue visibility timeout instance property #3606

Open
patchwork01 opened this issue Nov 2, 2024 · 0 comments
Open

Replace queue visibility timeout instance property #3606

patchwork01 opened this issue Nov 2, 2024 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@patchwork01
Copy link
Collaborator

patchwork01 commented Nov 2, 2024

Background

There's an instance property sleeper.queue.visibility.timeout.seconds which sets the queue visibility timeout for a number of SQS queues. The property description is indirect about which queues it includes. It's not clear what the logic would be to set these timeouts on one instance property. In particular, some of the queues are consumed by lambdas without also setting lambda timeout.

Here are the queues currently configured by this:

  • The standard ingest job queue
  • The ingest batcher submission queue
  • The query results queue

Description

We'd like to replace the queue visibility timeout instance property with separate properties to configure each of these queues appropriately.

Analysis

The ingest batcher submitter lambda has a property sleeper.ingest.batcher.submitter.timeout.seconds which sets the timeout for the lambda. The queue that triggers it probably needs a visibility timeout which matches that.

The standard ingest job queue visibility timeout needs to relate to the property sleeper.ingest.keepalive.period.seconds, which sets how often the message of a running ingest job has its visibility timeout reset. The description of the keepalive period property explains the relation to the queue visibility timeout, but the queue visibility timeout property doesn't mention it. We can make a property specific to standard ingest for its queue visibility timeout, which can also refer to the keepalive period property.

The query results queue doesn't relate to any of the other queues, as it is expected to be consumed by a client. It can be configured separately with its own property.

@patchwork01 patchwork01 added the enhancement New feature or request label Nov 2, 2024
@patchwork01 patchwork01 added this to the 0.27.0 milestone Nov 2, 2024
@patchwork01 patchwork01 modified the milestones: 0.27.0, 0.28.0, 0.30.0, 0.29.0 Nov 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant