Open george-moussa opened 2 years ago
Another solution to submitting multiple jobs in parallel would be through async i/o, see https://github.com/microsoft/qdk-python/issues/94.
Unfortunately, I'm seeing the same problem when using the aio library. There seems to be some deadlock happening on a low-level http library. I have opened a ticket with the azure-sdk team to get their help: https://github.com/Azure/azure-sdk-for-python/issues/24443
More analysis suggests this is a service problem, which we're investigating and might have a solution soon.
I'm trying to submit and process results of multiple jobs in parallel but I'm noticing that, in many cases, jobs are submitted sequentially.
For the above, output is: 2022-04-21 18:40:23.466530 [0] solver.submit() start 2022-04-21 18:40:23.542727 [1] solver.submit() start 2022-04-21 18:40:28.752803 [1] job.id=810bc3bb-c1a2-11ec-baa1-b831b575aea6 2022-04-21 18:40:28.752803 [1] job.get_results() start ..........2022-04-21 18:40:52.826348 [1] job.details={..........} 2022-04-21 18:44:19.108243 [0] job.id=81018a8e-c1a2-11ec-adf4-b831b575aea6 2022-04-21 18:44:19.109211 [0] job.get_results() start ..........2022-04-21 18:44:42.799796 [0] job.details={..............}
You can see that job 1 was submitted and awaited while job 0 hasn't been submitted at the same time and was done 4 mins after the first job.