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

Restart failed url and survive duplicate files #171

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

painter1
Copy link
Contributor

There are two changes here, submitted together because they both involve sdsqlutils.py.

  1. Upon a retry, the failed_url table should be cleared for the retried files. Otherwise they can't be properly retried.
  2. On rare occasions I have seen Synda crash due to duplicate database entries for the same file or similar problems which aren't supposed to happen. This change deals with them by logging an error message, changing a filename, and assigning a special status. Clearing up the problem has to be done manually, but with this change it is not urgent.

…able.

2. In sdsqlutils.insert(), do not crash if sqlite3 raises an IntegrityError.
For example, this can happen if the same file is in two places.  Instead of
a crash, log the event and change the filename.  The database will have to be
fixed manually.
…da can

sometimes detect them but cannot fix them.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant