move all codes into jobqueue-common