Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ classifiers = [
requires-python = ">=3.8"
dependencies = [
"ewokscore >=5.0.0",
"pypushflow >=2.0.0",
"pypushflow >2.0.0",
]

[project.urls]
Expand Down
8 changes: 1 addition & 7 deletions src/ewoksppf/bindings.py
Original file line number Diff line number Diff line change
Expand Up @@ -154,9 +154,7 @@ def _conditions_fulfilled(self, inData: dict) -> bool:
return True

def _execute(self, inData: dict, _scope_id: Optional[str] = None) -> None:
self.setStarted()
trigger = self._conditions_fulfilled(inData)
self.setFinished()
if trigger:
for actor in self.listDownStreamActor:
actor.trigger(inData)
Expand Down Expand Up @@ -263,11 +261,7 @@ def _execute(
source: Optional[AbstractActor] = None,
) -> None:
with self._lock:
self.setStarted()
try:
self._cache_inputs(source, inData)
finally:
self.setFinished()
self._cache_inputs(source, inData)

if not self._has_all_required_triggers():
return
Expand Down
Loading