Skip to content

SupRsync adding finalize files every other day #562

@jlashner

Description

@jlashner

@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:

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.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions