Allowed option to disable jobs after N attempts.

@andykram @florianleibert