rewrite outlog to remove duplicate jobs