Add monitor session job proto and controller changes

This adds a new Job type that is for generic session state monitoring.  Monitoring sessions does not include any information about specific connections.
This commit is contained in:
Todd authored and Timothy Messier committed 2023-05-31 12:18:12 +00:00
1 parent 4d60f42210
commit bc48f2d0e0
10 files changed
+851 -320

No files matched your search

-9
View File
@@ -392,15 +392,6 @@ update session_connection
where
public_id in (select public_id from connections_to_close)
returning public_id;
`
checkIfNotActive = `
select session_id, state
from session_state ss
where
(ss.state = 'canceling' or ss.state = 'terminated')
and ss.end_time is null
%s
;
`
deleteTerminated = `
delete from session