The 1.9 hash syntax `where(repo_id: repo_iterator[:id], task_name: nil)` is probably nicer here.