This pull request shortens the time to ecavuate invocation.
On my environment, this PR shortens by 60 seconds (recovery_max_retry_count(6) * recovery_retry_interval(10)).
dbapi.get_one_vm_list_by_uuid_and_progress_create_at_last returns not 0 but None in case of no record. So I'v changed from if row_cnt == 0 to if not result in _create_vm_list_db_for_failed_host like _create_vm_list_db_for_failed_instance.
This pull request shortens the time to ecavuate invocation. On my environment, this PR shortens by 60 seconds (
recovery_max_retry_count(6) * recovery_retry_interval(10)
).dbapi.get_one_vm_list_by_uuid_and_progress_create_at_last
returns not0
butNone
in case of no record. So I'v changed fromif row_cnt == 0
toif not result
in_create_vm_list_db_for_failed_host
like_create_vm_list_db_for_failed_instance
.