Running different types of jobs on a cluster