lib/foreman_tasks/dynflow/persistence.rb in foreman-tasks-0.6.15 vs lib/foreman_tasks/dynflow/persistence.rb in foreman-tasks-0.7.0
- old
+ new
@@ -14,9 +14,11 @@
ForemanTasks.dynflow.world.logger.error('Error on on_execution_plan_save event')
ForemanTasks.dynflow.world.logger.error(e.message)
ForemanTasks.dynflow.world.logger.error(e.backtrace.join("\n"))
end
end
+ ensure
+ ::ActiveRecord::Base.clear_active_connections!
end
def on_execution_plan_save(execution_plan_id, data)
# We can load the data unless the execution plan was properly planned and saved
# including its steps