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).
|