Skip to content

Commit 6957e27

Browse files
authored
Merge pull request #2919 from kakakakakku/lambda-durable-scheduled-tasks-sam
lambda-durable-scheduled-tasks-sam: Fix empty taskId in async API Gateway response
2 parents fbb7016 + 7c28227 commit 6957e27

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)