Skip to content

initial fixes after qiita-rc 09.2023 #3320

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 8 commits into from
Oct 11, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
initial fixes after qiita-rc 09.2023
  • Loading branch information
antgonza committed Sep 27, 2023
commit df697c9dcfcaeb4b627e8e3224c3c035ca93f3b3
2 changes: 1 addition & 1 deletion qiita_db/handlers/artifact.py
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ def post(self):
values['template'] = prep_id
cmd = qdb.software.Command.get_validator(atype)
params = qdb.software.Parameters.load(cmd, values_dict=values)
if add_default_workflow:
if add_default_workflow or add_default_workflow == 'True':
pwk = qdb.processing_job.ProcessingWorkflow.from_scratch(
user, params, name=f'ProcessingWorkflow for {job_id}')
# the new job is the first job in the workflow
Expand Down
6 changes: 6 additions & 0 deletions qiita_db/processing_job.py
Original file line number Diff line number Diff line change
Expand Up @@ -513,6 +513,7 @@ def get_resource_allocation_info(self):
part = f'{days}-{str(td)}'
else:
part = str(td)
part = part.split('.')[0]
else:
part = naturalsize(
value, gnu=True, format='%.0f')
Expand Down Expand Up @@ -1310,6 +1311,11 @@ def _complete_artifact_definition(self, artifact_data):
data_type=data_type, name=job_params['name'])
self._set_status('success')

# releasing children
for c in self.children:
if c.status == 'waiting':
c.submit()

def _complete_artifact_transformation(self, artifacts_data):
"""Performs the needed steps to complete an artifact transformation job

Expand Down