You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I don't see a scenario where this can be used. Do you have an example?
Usualy the running indicates that a task is not jet finished processing/running. The other decorators like Invert, AlwaysFail or AlwaisSucceed do logical processing.
@Calamari actually i have used some time ago so i don't remember perfectly well .
I've used the proposed decorator in a time stepped enviroment in order to account for a sequence that should run continously until a success is returned. For example:
{
"type": "start",
"name": ""
},
{
"type": "reachObject",
"name": ""
},
{
"type": "catchObject",
"name": ""
},
{
"type": "running",
"name": "putObjectInsideBucket",
"node": {
"type": "sequence",
"name": "putObjectInsideBucketSequence",
"nodes": [
{
"type": "checkBucketPosition",
"name": "each time we check if the position of the bucket has changed"
},
{
"type": "reachBucket",
"name": "path finding throught the bucket, if bucket reached return SUCCESS"
}
]
}
},
{
"type": "releaseObjectIntoBucket",
"name": ""
},
{
"type": "finish",
"name": ""
}
Here putObjectInsideBucket is in an AlwaysRunningDecorator so at each enviroment cycle the step function will stay on the putObjectInsideBucketSequence until the bucket is reached.
If using AlwaysSuccessDecorator or AlwaysFailingDecorator the putObjectInsideBucket will be exected just once. With AlwaysRunningDecorator it got executed multiple times until a success returned.
Not sure if is a proper way to use that package.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Does it make sense to add an "AlwaysRunningDecorator"?
In order to keep running a ceratin node at each step until it fails.