Check that a subtask has not already completed before running.