Loading transfer_service/store_preprocessor.py +2 −1 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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() Loading transfer_service/tape_client.py +9 −9 Original line number Diff line number Diff line Loading @@ -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') Loading
transfer_service/store_preprocessor.py +2 −1 Original line number Diff line number Diff line Loading @@ -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: Loading @@ -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() Loading
transfer_service/tape_client.py +9 −9 Original line number Diff line number Diff line Loading @@ -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')