add cancel api for a single job