Skip to content
This repository was archived by the owner on Oct 10, 2025. It is now read-only.

Commit 89eb59b

Browse files
committed
Fixes ProjectionExpression in Scheduler
Scheduler dynamodb projection expression in for listing schedulers used a reserved word, resolved using ExpressionAttributeNames
1 parent d252eb4 commit 89eb59b

File tree

1 file changed

+4
-1
lines changed
  • source/aws_lambda/shared/scheduler

1 file changed

+4
-1
lines changed

source/aws_lambda/shared/scheduler/base.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,10 @@ def list(self) -> Generator[str, None, None]:
139139
:return: Generator[str] of the schedules (by name)
140140
"""
141141
done = False
142-
scan_kwargs = {"ProjectionExpression": TASK_PK}
142+
scan_kwargs = {
143+
"ProjectionExpression": "#name",
144+
"ExpressionAttributeNames": {"#name": TASK_PK},
145+
}
143146
start_key = None
144147
discovered = set()
145148
while not done:

0 commit comments

Comments
 (0)