Allow specifing states that are allowed to be stuck

2 jobs for !825 with ci/msammler/nb_state in 9 minutes and 57 seconds (queued for 5 seconds)
latest merge request