benedekh / WeLoveClouds

Repository for submissions on the CloudDB course.
0 stars 1 forks source link

Implements fail commands in the ecs #121

Closed banctilrobitaille closed 7 years ago

ghost commented 7 years ago

I take it that by "fail command" you mean a command that lets the ecs user crash one of the nodes at random right? Has this been implemented by anyone?

banctilrobitaille commented 7 years ago

@RMIT-s3529366-Hunton-Bowland no the fail commands are what the ecs should do if a command execution fails. We execute the commands in a RetryableTask like this : image

so it runs the command, if the command is sucessfully executed it executes the sucess commands otherwise it executes the fail commands which are the operations that revert the failed commands. Don't know if it's clear lol

ghost commented 7 years ago

That's clear, thanks for the explanation.