Compare commits

...

1 Commits

Author SHA1 Message Date
Roman Acevedo
a6234c33df fix(executions): dont persist State.getDurationOrComputeIt method 2025-12-08 17:47:44 +01:00

View File

@@ -100,6 +100,7 @@ public class State {
/**
* @return either the Duration persisted in database, or calculate it on the fly for non-terminated executions
*/
@JsonIgnore
public Duration getDurationOrComputeIt() {
return this.getDuration().orElseGet(() -> Duration.between(this.getStartDate(), Instant.now()));
}