flog a dead horse: to waste effort on something when there is no chance of succeeding.
He keeps trying to get it published but I think he's flogging a dead horse.
My feeling is that the literal translation does not make sense in French.
Il continue d'essayer de le faire publier mais je pense qu'il fouette un cheval mort.
So how can we convey the meaning in French idiomatically?