Replies: 2 comments 3 replies
-
One thing to keep in mind is, that it is possible, that an entity gets fetched, because it's not leased, but no action can be performed on it. |
Beta Was this translation helpful? Give feedback.
3 replies
-
ah good point |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Currently the functions that are executed by the state machines on every iteration return a
boolean
.Those boolean are counted by
ProcessorImpl
:Connector/core/common/state-machine/src/main/java/org/eclipse/edc/statemachine/ProcessorImpl.java
Lines 61 to 62 in 9d39f5c
and the count is used to decide whether to add a delay on the iteration or not:
Connector/core/common/state-machine/src/main/java/org/eclipse/edc/statemachine/StateMachineManager.java
Lines 108 to 114 in 9d39f5c
I discovered that there is no function that's returning
false
so we're not using that feature that, thinking about it, is not really necessary anyway because an entity that gets fetched is also supposed to be processed in a certain way.So the logic should/could be:
This will simplify the process functions signature that often causes headache during the implementation (should I return true or false?).
Any thoughts on that?
Beta Was this translation helpful? Give feedback.
All reactions