Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New videos are being identified repeatedly #56

Open
4 of 7 tasks
waldoj opened this issue Jan 18, 2018 · 1 comment
Open
4 of 7 tasks

New videos are being identified repeatedly #56

waldoj opened this issue Jan 18, 2018 · 1 comment
Labels

Comments

@waldoj
Copy link
Member

waldoj commented Jan 18, 2018

A new video is "found," and then "found" again a few hours later. Gotta be a caching problem. Figure out the source of the problem, and solve it.

The solution is likely to involve using the files table in the database.

  • create a new Committees class that includes functionality to get the likely committee ID for a given chamber and committee name
  • incorporate that class into rs-video-processor and rs-machine
  • get a video's committee ID at the time that it's identified in rs-machine, and not later
  • create an array of all videos found in the RSS feed, with a counter for the number of time that we've attempted to download each, a timestamp for when we encountered it, the chamber ID (if applicable), and the RSS GUID
  • if a video in the RSS feed is new, queue it
  • if a video in the RSS feed isn't new, but we have no record of it in the database, and it's been more than X hours since it was added to the queue, then add it to the queue
  • if a video in the RSS feed has a counter greater than n, ignore it
@waldoj waldoj added the bug label Jan 18, 2018
@waldoj
Copy link
Member Author

waldoj commented Jan 21, 2018

Another problem here—the cache file is potentially useless in a frequent-deploy scenario, because it doesn't necessarily survive a new deploy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant