Skip to content

Commit

Permalink
VerificationModels are no longer associated with SSH ControlMaster pr…
Browse files Browse the repository at this point in the history
…ocesses, now that we're using a pool.
  • Loading branch information
wettenhj committed Jul 22, 2015
1 parent 269f76b commit 161bccb
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions mydata/models/verification.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
from mydata.models.upload import PidIsRunning


class VerificationStatus:
NOT_STARTED = 0
IN_PROGRESS = 1
Expand Down Expand Up @@ -69,26 +66,3 @@ def GetFolder(self):

def GetDataFileIndex(self):
return self.dataFileIndex

def GetSshMasterProcess(self):
if hasattr(self, "sshMasterProcess"):
return self.sshMasterProcess
else:
return None

def SetSshMasterProcess(self, sshMasterProcess):
self.sshMasterProcess = sshMasterProcess

def GetSshControlPath(self):
if hasattr(self, "sshControlPath"):
return self.sshControlPath
else:
return None

def SetSshControlPath(self, sshControlPath):
self.sshControlPath = sshControlPath

def CleanUp(self):
sshMasterProcess = self.GetSshMasterProcess()
if sshMasterProcess and PidIsRunning(sshMasterProcess.pid):
sshMasterProcess.terminate()

0 comments on commit 161bccb

Please sign in to comment.