supervisor unit sessions now actually call txnctrl.cleanup

This commit is contained in:
Mikayla Fischler 2022-05-31 15:40:17 -04:00
parent 43d5c0f8ad
commit e52b76aa24
6 changed files with 14 additions and 1 deletions

View File

@ -177,6 +177,8 @@ function boiler.new(session_id, unit_id, advert, out_queue)
_request_tanks()
self.periodics.next_tanks_req = time_now + PERIODICS.TANKS
end
self.session.post_update()
end
-- get the unit session database

View File

@ -117,6 +117,8 @@ function emachine.new(session_id, unit_id, advert, out_queue)
_request_storage()
self.periodics.next_storage_req = time_now + PERIODICS.STORAGE
end
self.session.post_update()
end
-- get the unit session database

View File

@ -243,6 +243,8 @@ function redstone.new(session_id, unit_id, advert, out_queue)
self.periodics.next_ir_req = time_now + PERIODICS.INPUT_READ
end
end
self.session.post_update()
end
-- get the unit session database

View File

@ -165,6 +165,8 @@ function turbine.new(session_id, unit_id, advert, out_queue)
_request_tanks()
self.periodics.next_tanks_req = time_now + PERIODICS.TANKS
end
self.session.post_update()
end
-- get the unit session database

View File

@ -111,6 +111,11 @@ function unit_session.new(unit_id, advert, out_queue, log_tag, txn_tags)
return false
end
-- post update tasks
function protected.post_update()
self.transaction_controller.cleanup()
end
-- get the public interface
function protected.get() return public end

View File

@ -13,7 +13,7 @@ local svsessions = require("supervisor.session.svsessions")
local config = require("supervisor.config")
local supervisor = require("supervisor.supervisor")
local SUPERVISOR_VERSION = "beta-v0.4.2"
local SUPERVISOR_VERSION = "beta-v0.4.3"
local print = util.print
local println = util.println