Merge pull request #11148 from mvdbeek/mule_messaging_fix

[20.09] Fix mule job messaging
This commit is contained in:
Nicola Soranzo
2021-01-18 16:42:53 +00:00
committed by GitHub
2 changed files with 3 additions and 2 deletions
+2 -1
View File
@@ -110,10 +110,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
@@ -418,7 +418,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)