-
Notifications
You must be signed in to change notification settings - Fork 15
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
@kmharrington noticed that finalization files were being written by by suprsync every other day, instead of having a finalization file daily. Looking closely at the code, I realized that the reason is probably that the pysmurf-monitor is not using the srfm.add_file function to add files to the db:
socs/socs/agents/pysmurf_monitor/agent.py
Lines 210 to 211 in b9609ac
| with srfm.Session.begin() as session: | |
| session.add_all(files) |
which is an issue since the
add_file fn is what actually adds the tcdir for the new file. This means the only files that are being added via add_file are previous finalization files.... which I think is what's causing this leap-frogging bug.
I think the easiest way to fix this is to have the suprsync agent regularly check and add the timecode dirs for recent files. I am going to have the agent query the last ~weeks worth of files to add timecode dirs like once an hour or so, and see if that fixes this bug.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working