Skip to content

fix(npmjs): packument processor cannot be deployed - #1946

Merged
cdklabs-automation merged 1 commit into
mainfrom
mrgrain/fix/npmjs/packument-dlq-visibility-timeout
Oct 14, 2026
Merged

cdklabs-automation merged 1 commit into
mainfrom
mrgrain/fix/npmjs/packument-dlq-visibility-timeout

Conversation

@mrgrain

@mrgrain mrgrain commented Oct 14, 2026

Copy link
Copy Markdown
Contributor

Deploying #1942 fails on the event source that connects the packument processor to its dead-letter queue:

Invalid request provided: Queue visibility timeout: 30 seconds is less than Function timeout: 300 seconds

The processor reads the dead-letter queue to log and count the requests that were given up on. That queue never set a visibility timeout, so it had the SQS default of 30 seconds, and Lambda requires at least the function timeout. The main queue was fine, because it already used 30 minutes.

Both queues now take their visibility timeout from the function timeout (6 times, as AWS recommends), so they can't drift apart again. A new construct test checks every queue the processor reads; it fails on main with the same 30 seconds against 300.


By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

The packument processor reads its dead-letter queue, but that queue had
the default visibility timeout of 30 seconds. Lambda rejects an event
source whose queue hides messages for less time than the function runs
(5 minutes), so the deployment failed.

Both queues the processor reads now use a visibility timeout of 6 times
the function timeout.
@github-actions

Copy link
Copy Markdown
Contributor

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@cdklabs-automation
cdklabs-automation added this pull request to the merge queue Oct 14, 2026
Merged via the queue into main with commit a8a7bc0 Oct 14, 2026
9 checks passed
@cdklabs-automation
cdklabs-automation deleted the mrgrain/fix/npmjs/packument-dlq-visibility-timeout branch October 14, 2026 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants