Commit 8aa9531a authored by Cristiano Urban's avatar Cristiano Urban
Browse files

Minor improvements.

parent 57d76986
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -193,6 +193,7 @@ class StorePreprocessor(TaskExecutor):
        self.dbConn.disconnect()

    def run(self):
        print("Starting storage preprocessor...")
        self.setSourceQueueName("write_pending")
        self.setDestinationQueueName("write_ready")
        while True:
@@ -203,7 +204,7 @@ class StorePreprocessor(TaskExecutor):
                self.prepare(self.username)
                self.execute()
                self.srcQueue.moveJobTo(self.destQueue.name())
                print("Job MOVED!")
                print(f"Job {self.jobObj['jobId']} MOVED from {self.srcQueue.name()} to {self.destQueue.name()}")

# Test
#sp = StorePreprocessor()
+9 −9
Original line number Diff line number Diff line
@@ -75,12 +75,12 @@ class TapeClient(object):


# Test
tc = TapeClient("192.168.56.101", 22, "root", "ibm")
tc.connect()
tc.copy("/home/curban/store/mydir", "/home/mydir")
tc.copy("/home/curban/store/foo2.txt", "/home/mydir/foo2.txt")
tl = tc.getTaskList()
tc.disconnect()
for i in tl:
    print(i.id)
    print('\n')
#tc = TapeClient("192.168.56.101", 22, "root", "ibm")
#tc.connect()
#tc.copy("/home/curban/store/mydir", "/home/mydir")
#tc.copy("/home/curban/store/foo2.txt", "/home/mydir/foo2.txt")
#tl = tc.getTaskList()
#tc.disconnect()
#for i in tl:
#    print(i.id)
#    print('\n')