avoid consuming resources more than once per task