MCPcopy Create free account
hub / github.com/dmtcp/dmtcp / listSessions

Function listSessions

contrib/python/dmtcp.py:120–131  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

118 sessionList.sort()
119
120def listSessions():
121 global sessionList
122 if len(sessionList) == 0:
123 createSessionList()
124 count = 1;
125 for session in sessionList:
126 print('[%d]' %(count), end="")
127 count += 1
128 print(session)
129
130 if len(sessionList) == 0:
131 print('No checkpoint sessions found')
132
133def removeSession(sessionId = 0):
134 print("TODO")

Callers

nothing calls this directly

Calls 1

createSessionListFunction · 0.85

Tested by

no test coverage detected