Use associated constant for max (#3375)

11 jobs for master in 28 minutes and 35 seconds (queued for 19 seconds)