Skip to content

Commit 37eb745

Browse files
author
Bob Strahan
committed
add execution_arn to doc object
1 parent 1469889 commit 37eb745

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

patterns/pattern-2/src/ocr_function/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def handler(event, context):
3737

3838
# Update document status to OCR and update in AppSync
3939
document.status = Status.OCR
40+
document.workflow_execution_arn = event.get("execution_arn")
4041
appsync_service = DocumentAppSyncService()
4142
logger.info(f"Updating document status to {document.status}")
4243
appsync_service.update_document(document)

patterns/pattern-3/src/ocr_function/index.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ def handler(event, context):
3737

3838
# Update document status to OCR and update in AppSync
3939
document.status = Status.OCR
40+
document.workflow_execution_arn = event.get("execution_arn")
4041
appsync_service = DocumentAppSyncService()
4142
logger.info(f"Updating document status to {document.status}")
4243
appsync_service.update_document(document)

0 commit comments

Comments
 (0)