primitive job submission logic