Skip to content

Commit 7c28227

Browse files
committed
lambda-durable-scheduled-tasks-sam: Fix empty taskId in async API Gateway response
1 parent 2a31c14 commit 7c28227

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

lambda-durable-scheduled-tasks-sam/template.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,8 +145,9 @@ Resources:
145145
statusCode: 202
146146
responseTemplates:
147147
application/json: |
148+
#set($taskId = "TASK-$context.requestTimeEpoch")
148149
{
149-
"taskId": "$input.path('$.taskId')",
150+
"taskId": "$taskId",
150151
"status": "INITIALIZED",
151152
"message": "Task started successfully"
152153
}

0 commit comments

Comments
 (0)