mirror of
https://github.com/MikaylaFischler/cc-mek-scada.git
synced 2024-08-30 18:22:34 +00:00
supervisor unit sessions now actually call txnctrl.cleanup
This commit is contained in:
@ -177,6 +177,8 @@ function boiler.new(session_id, unit_id, advert, out_queue)
|
|||||||
_request_tanks()
|
_request_tanks()
|
||||||
self.periodics.next_tanks_req = time_now + PERIODICS.TANKS
|
self.periodics.next_tanks_req = time_now + PERIODICS.TANKS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.session.post_update()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get the unit session database
|
-- get the unit session database
|
||||||
|
@ -117,6 +117,8 @@ function emachine.new(session_id, unit_id, advert, out_queue)
|
|||||||
_request_storage()
|
_request_storage()
|
||||||
self.periodics.next_storage_req = time_now + PERIODICS.STORAGE
|
self.periodics.next_storage_req = time_now + PERIODICS.STORAGE
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.session.post_update()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get the unit session database
|
-- get the unit session database
|
||||||
|
@ -243,6 +243,8 @@ function redstone.new(session_id, unit_id, advert, out_queue)
|
|||||||
self.periodics.next_ir_req = time_now + PERIODICS.INPUT_READ
|
self.periodics.next_ir_req = time_now + PERIODICS.INPUT_READ
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.session.post_update()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get the unit session database
|
-- get the unit session database
|
||||||
|
@ -165,6 +165,8 @@ function turbine.new(session_id, unit_id, advert, out_queue)
|
|||||||
_request_tanks()
|
_request_tanks()
|
||||||
self.periodics.next_tanks_req = time_now + PERIODICS.TANKS
|
self.periodics.next_tanks_req = time_now + PERIODICS.TANKS
|
||||||
end
|
end
|
||||||
|
|
||||||
|
self.session.post_update()
|
||||||
end
|
end
|
||||||
|
|
||||||
-- get the unit session database
|
-- get the unit session database
|
||||||
|
@ -111,6 +111,11 @@ function unit_session.new(unit_id, advert, out_queue, log_tag, txn_tags)
|
|||||||
return false
|
return false
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- post update tasks
|
||||||
|
function protected.post_update()
|
||||||
|
self.transaction_controller.cleanup()
|
||||||
|
end
|
||||||
|
|
||||||
-- get the public interface
|
-- get the public interface
|
||||||
function protected.get() return public end
|
function protected.get() return public end
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ local svsessions = require("supervisor.session.svsessions")
|
|||||||
local config = require("supervisor.config")
|
local config = require("supervisor.config")
|
||||||
local supervisor = require("supervisor.supervisor")
|
local supervisor = require("supervisor.supervisor")
|
||||||
|
|
||||||
local SUPERVISOR_VERSION = "beta-v0.4.2"
|
local SUPERVISOR_VERSION = "beta-v0.4.3"
|
||||||
|
|
||||||
local print = util.print
|
local print = util.print
|
||||||
local println = util.println
|
local println = util.println
|
||||||
|
Reference in New Issue
Block a user