This repository was archived by the owner on Sep 20, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 55
66from invenio .config import CFG_REDIS_HOST_LABS , CFG_TMPSHAREDDIR
77from invenio .bibformat_elements .bfe_INSPIRE_enhanced_marcxml import get_hepname_id , get_personid_canonical_id
8- from invenio .bibsched_tasklets .bst_prodsync import run_on_slave_db
98from invenio .bibtask import write_message
109from invenio .dbquery import run_sql
1110
@@ -38,14 +37,15 @@ def bst_claimsync():
3837 Note2: in order to set the lastrun to a particular date edit
3938 the file CFG_TMPSHAREDDIR/claimsync_lastrun.txt.
4039 """
40+ from invenio .bibsched_tasklets .bst_prodsync import run_ro_on_slave_db
4141 r = redis .StrictRedis .from_url (CFG_REDIS_HOST_LABS )
4242 if r .llen (REDIS_KEY ) != 0 :
4343 write_message ("Skipping prodsync: Redis queue is not yet empty" )
4444 return
4545 now = strftime ('%Y-%m-%d %H:%M:%S' )
4646 lastrun = get_lastrun ()
4747 write_message ("Syncing claims modified since %s" % lastrun )
48- with run_on_slave_db ():
48+ with run_ro_on_slave_db ():
4949 claims = run_sql ("""
5050 SELECT personid, bibrec, name, flag
5151 FROM aidPERSONIDPAPERS
You can’t perform that action at this time.
0 commit comments