triggermesh / aws-event-sources

Knative event sources for AWS services
Apache License 2.0
60 stars 14 forks source link

sqs: Add option for configuring visibility timeout #331

Closed antoineco closed 3 years ago

antoineco commented 3 years ago

Adds a new option receiveOptions.visibilityTimeout which controls the visibility timeout set on received messages:

apiVersion: sources.triggermesh.io/v1alpha1
kind: AWSSQSSource
metadata:
  name: sample
spec:
  # ...
  receiveOptions:
    visibilityTimeout: <duration string; e.g. "1m30s">

The previously hardcoded value of 30s has been removed and, when the user doesn't set a value at all, the overall value configured for the queue is used.

Closes #329

cc. @noahw3