Check if a task has been run before, before submitting it