Failure healing policies

Generic autoheal workflow + refactor in workflows.py
make this method private (prefixed with _)