Add attempts number configuration to failure manager