aboutsummaryrefslogtreecommitdiff
path: root/uploader/phenotypes/views.py
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi2025-05-19 14:53:26 -0500
committerFrederick Muriuki Muriithi2025-05-19 14:53:26 -0500
commit11151a4bfee7997e851d3cb03b93e36c3c2f0f1e (patch)
treeebf060d49348d630779142fcccedc56b6a71b93e /uploader/phenotypes/views.py
parenteef2ffe1cd7c1455ef1b9ac99f533529f1a8f487 (diff)
downloadgn-uploader-11151a4bfee7997e851d3cb03b93e36c3c2f0f1e.tar.gz
Provide extra metadata to the job.
Diffstat (limited to 'uploader/phenotypes/views.py')
-rw-r--r--uploader/phenotypes/views.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index 434912b..4d733bc 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -644,7 +644,11 @@ def load_data_to_database(
load_job_id,
command,
"load-new-phenotypes-data",
- extra_meta={}),
+ extra_meta={
+ "species_id": species["SpeciesId"],
+ "population_id": population["Id"],
+ "dataset_id": dataset["Id"]
+ }),
jobs_db,
f"{app.config['UPLOAD_FOLDER']}/job_errors",
worker_manager="gn_libs.jobs.launcher")