Analysis of Reinforcement Learning for determining task replication in workflows