about summary refs log tree commit diff
diff options
context:
space:
mode:
authorFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-11-11 19:07:38 +0000
committerFrederick Muriuki Muriithi <fredmanglis@gmail.com>2026-11-11 13:44:25 -0600
commit7be2f4872a49c1491cee4cde308ae60218b35c69 (patch)
tree611e766c71b7b49aac490ffb354d6398a32b7425
parent0f114b1f9fbf4cf4a2d7957961f0503eff3442db (diff)
downloadgn-uploader-7be2f4872a49c1491cee4cde308ae60218b35c69.tar.gz
Update genotype/phenotype/sample job call sites for keyword metadata
`initialise_job` now takes metadata as keyword arguments, so replace the
`extra_meta={...}` arguments with `**{...}` at the gn-libs job call sites.

Co-authored-by: pi coding agent <pi@pi.dev>
-rw-r--r--uploader/genotypes/views.py4
-rw-r--r--uploader/phenotypes/views.py8
-rw-r--r--uploader/samples/views.py2
3 files changed, 7 insertions, 7 deletions
diff --git a/uploader/genotypes/views.py b/uploader/genotypes/views.py
index d7b7de0..9928532 100644
--- a/uploader/genotypes/views.py
+++ b/uploader/genotypes/views.py
@@ -146,7 +146,7 @@ def study_design(# pylint: disable=[unused-argument,too-many-locals]
                     [sys.executable, "-m", "uploader.scripts.genotypes.qc",
                      _jobs_db, str(_qc_job_id)],
                     "genotype-file-qc",
-                    extra_meta={
+                    **{
                         "stage02": json.dumps(_saved),
                         "genotype_collector_job_id": str(job_id),
                         "file": _file,
@@ -443,7 +443,7 @@ def add_genotype_records(# pylint: disable=[unused-argument]
                 str(uuid.uuid4()),
                 collector_config.command(_geno_file, _collector_config),
                 "genotype-file-stats",
-                extra_meta={
+                **{
                     "file": str(_geno_file),
                     "config": json.dumps(_collector_config),
                     "job_name": f"Genotype file statistics: {_geno_file.name}",
diff --git a/uploader/phenotypes/views.py b/uploader/phenotypes/views.py
index a85a442..dc4925e 100644
--- a/uploader/phenotypes/views.py
+++ b/uploader/phenotypes/views.py
@@ -699,7 +699,7 @@ def load_data_to_database(
                 _load_job_id,
                 command,
                 "load-new-phenotypes-data",
-                extra_meta={
+                **{
                     "species_id": species["SpeciesId"],
                     "population_id": population["Id"],
                     "dataset_id": dataset["Id"],
@@ -1093,7 +1093,7 @@ def recompute_means(# pylint: disable=[unused-argument]
                 _job_id,
                 command,
                 "(re)compute-phenotype-means",
-                extra_meta={
+                **{
                     "species_id": species["SpeciesId"],
                     "population_id": population["Id"],
                     "dataset_id": dataset["Id"],
@@ -1174,7 +1174,7 @@ def rerun_qtlreaper(# pylint: disable=[unused-argument]
                 _job_id,
                 command,
                 "(re)run-qtlreaper",
-                extra_meta={
+                **{
                     "species_id": species["SpeciesId"],
                     "population_id": population["Id"],
                     "dataset_id": dataset["Id"],
@@ -1284,7 +1284,7 @@ def delete_phenotypes(# pylint: disable=[unused-argument, too-many-locals]
                             app.config["AUTH_SERVER_URL"],
                             token["access_token"]] + _cmd,
                         "delete-phenotypes",
-                        extra_meta={
+                        **{
                             "species_id": species["SpeciesId"],
                             "population_id": population["Id"],
                             "dataset_id": dataset["Id"],
diff --git a/uploader/samples/views.py b/uploader/samples/views.py
index ef063f8..c719a94 100644
--- a/uploader/samples/views.py
+++ b/uploader/samples/views.py
@@ -171,7 +171,7 @@ def upload_samples(species_id: int, population_id: int):#pylint: disable=[too-ma
                     f"--quotechar={quotechar}"
                 ] + (["--firstlineheading"] if firstlineheading else []),
                 "samples_upload",
-                extra_meta={
+                **{
                     "job_name": f"Samples Upload: {samples_file.name}",
                     "species_id": species["SpeciesId"],
                     "population_id": population["Id"],