From 3301d334cf77b3d4c60db478770e7c23094c2f48 Mon Sep 17 00:00:00 2001 From: Norbert Hoenderop Date: Tue, 20 Jan 2026 11:08:41 +0100 Subject: [PATCH] add readable state changed --- src/transaction_helper.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/transaction_helper.js b/src/transaction_helper.js index 0d59ff9..830e27f 100644 --- a/src/transaction_helper.js +++ b/src/transaction_helper.js @@ -27,6 +27,7 @@ function TransactionHelper({ processId, spec, errorToErrorDetails, taskNumber = if ((task._state || null) === startState) { task._state = inProgressState task._state_changed = SERVER_TIMESTAMP + task._state_changed_readable = new Date().toISOString() task._owner = owner task._progress = 0 return task @@ -43,6 +44,7 @@ function TransactionHelper({ processId, spec, errorToErrorDetails, taskNumber = ...(newTask || task), _state: finishedState, _state_changed: SERVER_TIMESTAMP, + _state_changed_readable: new Date().toISOString(), _owner: null, _progress: 100, _error_details: null, @@ -68,6 +70,7 @@ function TransactionHelper({ processId, spec, errorToErrorDetails, taskNumber = if (isProcessing(task)) { task._state = errorState task._state_changed = SERVER_TIMESTAMP + task._state_changed_readable = new Date().toISOString() task._owner = null task._error_details = { error: errorString,