From 5ecd4a48aaed0e79fe91ba35261ae3c819e92de8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=A1clav=20Van=C4=8Dura?= Date: Fri, 7 Feb 2025 13:10:41 +0100 Subject: [PATCH] Actor: Normalize key-value store terminology MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Václav Vančura --- .actor/README.md | 2 +- .actor/actor.sh | 10 +++++----- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.actor/README.md b/.actor/README.md index 69c5242e..cf72f68a 100644 --- a/.actor/README.md +++ b/.actor/README.md @@ -44,7 +44,7 @@ This Actor wraps the [Docling project](https://ds4sd.github.io/docling/) to prov - The URL of the document. - Output format (`md`, `json`, `html`, `text`, or `doctags`). - OCR boolean toggle. -4. The Actor will run and produce its outputs in the default Key-Value Store under the key `OUTPUT_RESULT`. +4. The Actor will run and produce its outputs in the default key-value store under the key `OUTPUT_RESULT`. ### Using Apify API diff --git a/.actor/actor.sh b/.actor/actor.sh index f3ad3684..6da7b595 100755 --- a/.actor/actor.sh +++ b/.actor/actor.sh @@ -139,11 +139,11 @@ fi echo "Document successfully processed and exported as '$OUTPUT_FORMAT' to file: $OUTPUT_NAME" -# --- Store output and log in Key-Value Store --- +# --- Store output and log in key-value store --- -echo "Pushing processed document to Key-Value Store (record key: OUTPUT_RESULT)..." +echo "Pushing processed document to key-value store (record key: OUTPUT_RESULT)..." apify actor:set-value "OUTPUT_RESULT" --contentType "application/$OUTPUT_FORMAT" <"$OUTPUT_NAME" || { - echo "Error: Failed to push the output document to the Key-Value Store" + echo "Error: Failed to push the output document to the key-value store" exit $ERR_STORAGE_FAILED } @@ -156,9 +156,9 @@ apify pushData "{\"url\": \"${DOCUMENT_URL}\", \"output_file\": \"${RESULT_URL}\ if [ -f "$LOG_FILE" ]; then if [ -s "$LOG_FILE" ]; then - echo "Log file is not empty, pushing to Key-Value Store (record key: DOCLING_LOG)..." + echo "Log file is not empty, pushing to key-value store (record key: DOCLING_LOG)..." apify actor:set-value "DOCLING_LOG" --contentType "text/plain" <"$LOG_FILE" || { - echo "Warning: Failed to push the log file to the Key-Value Store" + echo "Warning: Failed to push the log file to the key-value store" } else echo "Warning: docling.log file exists but is empty"