Sorry, but I haven't been following this thread. I am up to &% with an opportunistic contract in Java of all things.
If you are looking at the values in db2's cache, then it is updated just before the device_signals.device_metadata_available.emit(), which may happen while a sync_booklist is still running. If you are looking at the values in the device booklists, then it happens before the books models set_database calls, which happens before the library_view model refresh and a fair ways before device_signals.device_metadata_available.emit().
If you are looking at metadata.calibre, then there isn't an indication. The sync_booklists job that does that work is kicked off before the device_signals.device_metadata_available.emit(), but there is no guarantee that it has finished. Also note that this last job is run only if metadata management is set to automatic.
EDIT: If you are looking for when the values are correct after uploading books, then it is when the termination function books_uploaded is called. This happens when the job finishes. There are no notification signals. Note that a sync_booklists is kicked off when the books finish uploading, and will still be running when books_uploaded returns.
Did I answer the question?
Last edited by chaley; 06-11-2011 at 09:42 AM.
|