merge_machine/api.py
def cancel_job(job_id):
    '''
    Remove job from queue
    
    # TODO: make this work
    
    GET:
        - job_id: as returned by schedule_job
    '''
    
    try:
        job = Job.fetch(job_id, connection=conn)
        job.cancel()
        return jsonify(job_canceled=True, completed=False)
    except:
        return jsonify(job_canceled=False,
                       error=True, 
                       message='job_id could not be found', 
                       completed=False), 404

    Remove job from queue
    
    # TODO: make this work
    
    GET:
        - job_id: as returned by schedule_job
    
Remove job from queue
TODO: make this work

as returned by schedule_job
Remove job from queue TODO : make this work as returned by schedule_job
def cancel_job(job_id):
    try:
        job = Job.fetch(job_id, connection=conn)
        job.cancel()
        return jsonify(job_canceled=True, completed=False)
    except:
        return jsonify(job_canceled=False,
                       error=True, 
                       message='job_id could not be found', 
                       completed=False), 404
def cancel_job ( job_id ) : try : job = Job . fetch ( job_id , connection = conn ) job . cancel ( ) return jsonify ( job_canceled = True , completed = False ) except : return jsonify ( job_canceled = False , error = True , message = 'job_id could not be found' , completed = False ) , 404
Remove job from queue
 TODO: make this work
Remove job from queue TODO : make this work
'''
    Remove job from queue
    
    # TODO: make this work
    
    GET:
        - job_id: as returned by schedule_job
    '''
job_id