def job_cancel(context, data_dict):
 _check_access(u'job_cancel', context, data_dict)
 id = _get_or_bust(data_dict, u'id')
 try:
  jobs.job_from_id(id).delete()
  log.info(u'Cancelled background job {}'.format(id))
 except KeyError:
  raise NotFound

def job_cancel ( context , data_dict ) : _check_access ( u'job_cancel' , context , data_dict ) id = _get_or_bust ( data_dict , u'id' ) try : jobs . job_from_id ( id ) . delete ( ) log . info ( u'Cancelled background job {}' . format ( id ) ) except KeyError : raise NotFound
cancel a queued background job .