Skip to content
This repository was archived by the owner on Sep 12, 2024. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion Unified/assignSchema.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,4 +98,7 @@ class LogRecord(Base):
secret = open('Unified/secret_cmsr_rw.txt','r').read().strip()

engine = create_engine(secret)
Base.metadata.create_all(engine)
try:
Base.metadata.create_all(engine)
except:
print "Failed to create_all(engine)"
3 changes: 2 additions & 1 deletion Unified/cachor.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/usr/bin/env python
from assignSession import *
from utils import checkTransferStatus, moduleLock, sendLog, transferStatuses
from utils import checkTransferStatus, moduleLock, sendLog, transferStatuses, componentInfo
import json
import random
import sys
Expand All @@ -12,6 +12,7 @@ def cachor(spec=None):
if mlock():
print "currently running"
return
if not componentInfo().check(): return
TS = transferStatuses()
print sorted(TS.all()),"cached transfers"
## pop all that are now in inactive
Expand Down