Retry
dendron.decorators.retry.Retry
Bases: DecoratorNode
A Retry node ticks its child node repeatedly as long as the child
continues to return FAILURE.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
name
|
`str`
|
The given name of this node. |
required |
child
|
`dendron.tree_node.TreeNode`
|
Optional child node. If |
required |
n_times
|
`int`
|
Number of times to |
required |
Source code in src/dendron/decorators/retry.py
reset()
tick()
Tick the child node until either it returns SUCCESS or the child
is tick()ed n_times.