Skip to content

Commit 17a9c35

Browse files
doisygGuillaume Doisy
and
Guillaume Doisy
authored
[retry_node] Refresh max_attempts_ in case it changed (#905)
Co-authored-by: Guillaume Doisy <[email protected]>
1 parent 6c958bd commit 17a9c35

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/decorators/retry_node.cpp

+2
Original file line numberDiff line numberDiff line change
@@ -67,6 +67,8 @@ NodeStatus RetryNode::tick()
6767

6868
case NodeStatus::FAILURE: {
6969
try_count_++;
70+
// Refresh max_attempts_ in case it changed in one of the child nodes
71+
getInput(NUM_ATTEMPTS, max_attempts_);
7072
do_loop = try_count_ < max_attempts_ || max_attempts_ == -1;
7173

7274
resetChild();

0 commit comments

Comments
 (0)