Merge branch 'release_20.09' into release_21.01

This commit is contained in:
Nicola Soranzo
2021-01-19 17:50:41 +00:00
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -107,10 +107,11 @@ def execute(trans, tool, mapping_params, history, rerun_remap_job_id=None, colle
else:
# Make sure collections, implicit jobs etc are flushed even if there are no precreated output datasets
trans.sa_session.flush()
tool_id = tool.id
for job in execution_tracker.successful_jobs:
# Put the job in the queue if tracking in memory
tool.app.job_manager.enqueue(job, tool=tool, flush=False)
trans.log_event("Added job to the job queue, id: %s" % str(job.id), tool_id=job.tool_id)
trans.log_event("Added job to the job queue, id: %s" % str(job.id), tool_id=tool_id)
trans.sa_session.flush()
if has_remaining_jobs:
+1 -1
View File
@@ -425,7 +425,7 @@ class ConfiguresHandlers:
log.debug("(%s) No handler pool (uWSGI farm) for '%s' found", obj.log_str(), tag)
raise HandlerAssignmentSkip()
else:
if flush:
if flush or not obj.id:
_timed_flush_obj(obj)
message = message_callback()
self.app.application_stack.send_message(pool, message)