You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It seems like thumbnails are never None since thumbnail generation happens after storing the thumbnail name.
A possible 2 phase solution to this might be:
Phase 1
If thumbnail fetch returns an error. Ignore the file and store it anyway
Phase 2
Option 1
Figure out a way update db entries once thumbnails have been generated. There are several options for this:
Separate thumbnail table
Make thumbnails a Maybe one-to- maybe one mapping in the database. Generate a thumbnail ID that gets passed to both the generator and database and add them separately.
Pros:
Simple implementation
Cons:
Same problem might happen for files
Requires schema change
Add db entries after all tasks are done
Instead of starting worker threads for doing long winded operations when adding files but adding files immediately, use a job system similar to the way sync progress is handled.
This most likely originates from thumbnail generation having failed without nulling the db entry thumbnail field.
The text was updated successfully, but these errors were encountered: