We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b98e112 commit 75546dcCopy full SHA for 75546dc
impl/core/src/main/java/io/serverlessworkflow/impl/WorkflowInstance.java
@@ -68,7 +68,7 @@ private JsonNode whenCompleted(JsonNode node) {
68
.map(f -> f.apply(workflowContext, null, node))
69
.orElse(node);
70
workflowContext.definition().outputSchemaValidator().ifPresent(v -> v.validate(output));
71
- status.set(WorkflowStatus.COMPLETED);
+ status.compareAndSet(WorkflowStatus.RUNNING, WorkflowStatus.COMPLETED);
72
completedAt = Instant.now();
73
return output;
74
}
0 commit comments