I think that this is a race condition in the File() model object
The File() is created via ajaxuploader and given only an id and a file field
Metadata is saved on form submission
convert_with_gdrive() via celery uploads the file, and saves the .text and .html to the file obj
What I think is happening is celery kicks off the convert job right after ajaxuploader is complete. It contains a File() object that doesn't contain title metadata. The flow looks like this:
ajaxuploader creates File.id = 1 and saves
celery queries File.id=1 and it has no metadata
FileMeta saves title and description to File.id=1
celery finishes uploading and downloading the file, appens .text and .html to the File object, and saves an otherwise blank file to the DB
Crisis averted. I managed to patch this in de6af147. Deployment requires restarting celery and I have not yet doneso to beta, but I had not yet noticed this issue on beta. Either way, scary bug
I think that this is a race condition in the File() model object
File()
is created via ajaxuploader and given only anid
and a file fieldWhat I think is happening is celery kicks off the convert job right after ajaxuploader is complete. It contains a File() object that doesn't contain title metadata. The flow looks like this:
File.update()
may fix this