mothership-ec / cog-mothership-file-manager

Mothership File Manager Cogule
Other
1 stars 1 forks source link

Catch exceptions on the file sync script gracefully #76

Closed thomasjthomasj closed 10 years ago

thomasjthomasj commented 10 years ago

What does this do?

Syncing files on Tonic and RSAR was breaking when it was trying to duplicate rows. There's a bigger underlying issue here that requires investigation, but this stops the file sync from breaking when this happens.

How should this be manually tested?

Download the Tonic images and the live database and run:

bin/cog task:run file_manager:sync_files --env=local-[your name]

Some rows will be duplicates, but the script will continue to run regardless and report the errors at the end

Related PRs / Issues / Resources?

Anything else to add? (Screenshots, background context, etc)