lib/eco/api/session/batch/job.rb in eco-helpers-2.0.10 vs lib/eco/api/session/batch/job.rb in eco-helpers-2.0.11
- old
+ new
@@ -167,11 +167,12 @@
@requests = pqueue.map {|e| as_update(e)}
pre_checks(requests, simulate: simulate)
unless simulate
if pqueue.length > 0
- backup_update(requests)
+ req_backup = pqueue.map {|e| as_update(e, add_feedback: false)}
+ backup_update(req_backup)
session.batch.launch(pqueue, method: type).tap do |job_status|
@status = job_status
status.root = self
status.errors.print
end
@@ -215,10 +216,10 @@
def subjobs_summary
return "" unless subjobs.count > 0
[].tap do |msg|
subjobs.map {|subjob| msg << subjob.summary}
end.join("\n")
- end
+ end
def as_update(*args)
feedback.as_update(*args)
end