Example #1
0
    def Stop(self):
        status = ClusterStatus()

        # Get the factory id
        factoryID = status.GetFactoryID()

        # Remove the factory job
        (stderr, stdout) = RunExternal("condor_rm %s" % factoryID)
        print "Stderr = %s" % stderr.strip()
Example #2
0
    def Restart(self):
        status = ClusterStatus()

        # Get the factory id
        factoryID = status.GetFactoryID()

        # Hold then release the factory in the queue
        (stderr, stdout) = RunExternal("condor_hold %s" % factoryID)
        print "Stderr = %s" % stderr.strip()
        #print "Stdout = %s" % stdout.strip()

        (stderr, stdout) = RunExternal("condor_release %s" % factoryID)
        print "Stderr = %s" % stderr.strip()