func to get running job name