Skip to content

Commit 388d66d

Browse files
committed
Merge branch 'dev' of github.com:biocore/qiita
2 parents 5ab3ebb + 4b5fbc0 commit 388d66d

File tree

9 files changed

+43
-12
lines changed

9 files changed

+43
-12
lines changed

Diff for: CHANGELOG.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,15 @@
11
# Qiita changelog
22

3+
Version 2025.04
4+
---------------
5+
6+
Deployed on April 11th, 2025
7+
8+
* General improvements for automatic environment generation by @sjanssen2 (thank you!): [#3462](https://github.com/qiita-spots/qiita/pull/3462), [#3463](https://github.com/qiita-spots/qiita/pull/3463), [3464](https://github.com/qiita-spots/qiita/pull/3464), [#3465](https://github.com/qiita-spots/qiita/pull/3465).
9+
* When ProcessingJob.resource_allocation_info fails, it will now be [set as the error for the job](https://github.com/qiita-spots/qiita/pull/3466).
10+
* SPP: General updates and clean up: [#169](https://github.com/biocore/mg-scripts/pull/169), [#101](https://github.com/qiita-spots/qp-knight-lab-processing/pull/101).
11+
* `Remove SynDNA plasmid, insert, & CP026085 reads` superseded `Remove SynDNA inserts & plasmid reads`; which now removes SynDNA plasmids, inserts, and CP026085 reads, in this order.
12+
313
Version 2025.02
414
---------------
515

@@ -8,7 +18,7 @@ Deployed on February 24th, 2025
818
* Replaced os.rename for shutil.move in the code to fix [#3455](https://github.com/qiita-spots/qiita/issues/3455).
919
* Via qp-spades, replaced the legacy `spades` command for `cloudSPAdes` for TellSeq.
1020
* `FASTA_preprocessed` within qtp-sequencing now allows for results to be named using their sample-name, extra from run-prefix.
11-
* `Remove SynDNA inserts & plasmid reads` superseded `Remove SynDNA reads`, which now removes SynDna inserts and plasmids.
21+
* `Remove SynDNA inserts & plasmid reads` superseded `Remove SynDNA reads`, which now removes SynDNA inserts and plasmids.
1222
* `update_resource_allocation_redis` now relies on using equations stored in the database vs. hardcoded; thank you @Gossty!
1323
* SPP: Updated prep-info file generation to identify and report filtered fastq files that could not be matched to a sample-id instead of silently ignoring them.
1424
* SPP: Removed legacy test code and example files for amplicon processing. Some other tests updated and repurposed.

Diff for: qiita_core/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# -----------------------------------------------------------------------------
88

9-
__version__ = "2025.02"
9+
__version__ = "2025.04"

Diff for: qiita_db/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
from . import user
2828
from . import processing_job
2929

30-
__version__ = "2025.02"
30+
__version__ = "2025.04"
3131

3232
__all__ = ["analysis", "artifact", "archive", "base", "commands",
3333
"environment_manager", "exceptions", "investigation", "logger",

Diff for: qiita_db/processing_job.py

+21-5
Original file line numberDiff line numberDiff line change
@@ -1049,7 +1049,13 @@ def submit(self, parent_job_id=None, dependent_jobs_list=None):
10491049
# before returning immediately, usually with a job ID that can
10501050
# be used to monitor the job's progress.
10511051

1052-
resource_params = self.resource_allocation_info
1052+
try:
1053+
resource_params = self.resource_allocation_info
1054+
except qdb.exceptions.QiitaDBUnknownIDError as e:
1055+
# this propagates the error to the job and using str(e)
1056+
# should be fine as we just want the last calculation
1057+
# error
1058+
self._set_error(str(e))
10531059

10541060
# note that parent_job_id is being passed transparently from
10551061
# submit declaration to the launcher.
@@ -1105,13 +1111,23 @@ def submit(self, parent_job_id=None, dependent_jobs_list=None):
11051111
# organized into n 'queues' or 'chains', and
11061112
# will all run simultaneously.
11071113
for dependent in dependent_jobs_list:
1114+
# register dependent job as queued to make qiita
1115+
# aware of this child process
1116+
dependent._set_status('queued')
1117+
1118+
dep_software = dependent.command.software
1119+
dep_job_dir = join(qdb.util.get_work_base_dir(),
1120+
dependent.id)
11081121
p = Process(target=launcher['function'],
1109-
args=(plugin_env_script,
1110-
plugin_start_script,
1122+
args=(dep_software.environment_script,
1123+
dep_software.start_script,
11111124
url,
1112-
self.id,
1113-
job_dir))
1125+
dependent.id,
1126+
dep_job_dir))
11141127
p.start()
1128+
# assign the child process ID as external id to
1129+
# the dependent
1130+
dependent.external_id = p.pid
11151131
else:
11161132
error = ("execute_in_process must be defined",
11171133
"as either true or false")

Diff for: qiita_db/software.py

+5
Original file line numberDiff line numberDiff line change
@@ -1620,6 +1620,11 @@ def load(cls, command, json_str=None, values_dict=None):
16201620
error_msg = ("The provided JSON string doesn't encode a "
16211621
"parameter set for command %s" % command.id)
16221622
else:
1623+
if not isinstance(values_dict, dict):
1624+
raise qdb.exceptions.QiitaDBError(
1625+
"The provided value_dict is %s (i.e. not None) but also "
1626+
"not a dictionary for command %s" % (
1627+
values_dict, command.id))
16231628
parameters = deepcopy(values_dict)
16241629
error_msg = ("The provided values dictionary doesn't encode a "
16251630
"parameter set for command %s" % command.id)

Diff for: qiita_pet/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# -----------------------------------------------------------------------------
88

9-
__version__ = "2025.02"
9+
__version__ = "2025.04"

Diff for: qiita_pet/handlers/api_proxy/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
from .user import (user_jobs_get_req)
3939
from .util import check_access, check_fp
4040

41-
__version__ = "2025.02"
41+
__version__ = "2025.04"
4242

4343
__all__ = ['prep_template_summary_get_req', 'data_types_get_req',
4444
'study_get_req', 'sample_template_filepaths_get_req',

Diff for: qiita_ware/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# The full license is in the file LICENSE, distributed with this software.
77
# -----------------------------------------------------------------------------
88

9-
__version__ = "2025.02"
9+
__version__ = "2025.04"

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
from setuptools import setup
1111
from glob import glob
1212

13-
__version__ = "2025.02"
13+
__version__ = "2025.04"
1414

1515

1616
classes = """

0 commit comments

Comments
 (0)