Skip to content

Commit 75546dc

Browse files
committed
[Fix #520] Refining before release
1 parent b98e112 commit 75546dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ private JsonNode whenCompleted(JsonNode node) {
6868
.map(f -> f.apply(workflowContext, null, node))
6969
.orElse(node);
7070
workflowContext.definition().outputSchemaValidator().ifPresent(v -> v.validate(output));
71-
status.set(WorkflowStatus.COMPLETED);
71+
status.compareAndSet(WorkflowStatus.RUNNING, WorkflowStatus.COMPLETED);
7272
completedAt = Instant.now();
7373
return output;
7474
}

0 commit comments

Comments
 (0)