def store_failure(conn, run_dir, scaling_id):
    """Store failure of DIMPLE pipeline"""
    mx_processing = conn.mx_processing
    params = mx_processing.get_run_params()
    params['parentid'] = scaling_id
    params['pipeline'] = 'dimple'
    params['success'] = 0
    params['message'] = 'Unknown error'
    params['run_dir'] = run_dir
    mr_id = mx_processing.upsert_run(list(params.values()))
