View Single Post
Old 06-14-2011, 02:34 PM   #79
meme
Sigil developer
meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.meme ought to be getting tired of karma fortunes by now.
 
Posts: 1,274
Karma: 1101600
Join Date: Jan 2011
Location: UK
Device: Kindle PW, K4 NT, K3, Kobo Touch
As a note on my plugin - I don't actually create any other jobs in my plugin once my create_job starts. I used to accidentally call the get_device information job (to get device uuid) but realized that this messed up my percentage done indicator, and I could just get the values directly from calibre since get_devices had already run.

Out of curiousity, I'm currently calling the get_device_information immediately after my create job, but should I be calling it in my completed job function - since I don't need it to run until after my job completes anyway? I couldn't get this to work at first and so just moved it up to the main function where it worked and I left it. (I just use the completed function to present a dialog to the user to show them the report and nothing depends on them closing the dialog).
meme is offline   Reply With Quote