Skip to content

Commit

Permalink
comment out mapping generation for now
Browse files Browse the repository at this point in the history
  • Loading branch information
vemonet committed Oct 17, 2024
1 parent b98e257 commit 1fc3d04
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions backend/src/upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -405,16 +405,16 @@ async def upload_cohort(
)

# NOTE: waiting for more tests before sending to production
background_tasks.add_task(generate_mappings, cohort_id, metadata_path, g)
# background_tasks.add_task(generate_mappings, cohort_id, metadata_path, g)
# TODO: move all the "delete_existing_triples" and "publish_graph_to_endpoint" logic to the background task after mappings have been generated

# Delete previous graph for this file from triplestore
# TODO: will move to background task
# delete_existing_triples(
# get_cohort_mapping_uri(cohort_id), f"<{get_cohort_uri(cohort_id)!s}>", "icare:previewEnabled"
# )
# delete_existing_triples(get_cohort_uri(cohort_id))
# publish_graph_to_endpoint(g)
delete_existing_triples(
get_cohort_mapping_uri(cohort_id), f"<{get_cohort_uri(cohort_id)!s}>", "icare:previewEnabled"
)
delete_existing_triples(get_cohort_uri(cohort_id))
publish_graph_to_endpoint(g)
except Exception as e:
os.remove(metadata_path)
raise e
Expand Down

0 comments on commit 1fc3d04

Please sign in to comment.