Skip to content

Commit 98fe13f

Browse files
committed
chore: set the attempt count to 0 only when the status is queued when creating a record
Refs: RW-1109
1 parent 6e51b46 commit 98fe13f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Entity/ClassificationWorkflow.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -451,7 +451,7 @@ public function updateClassificationProgress(
451451
'entity_bundle' => $entity_bundle,
452452
'entity_id' => $entity_id,
453453
'status' => $status,
454-
'attempts' => 0,
454+
'attempts' => $status === 'queued' ? 0 : 1,
455455
'created' => time(),
456456
'changed' => time(),
457457
'message' => $message,

0 commit comments

Comments
 (0)