async def get_greeting(self): global version_found_in_step_1_0, version_found_in_step_1_1 global version_found_in_step_2_0, version_found_in_step_2_1 version_found_in_step_1_0 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2) version_found_in_step_1_1 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2) await Workflow.sleep(60) version_found_in_step_2_0 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2) version_found_in_step_2_1 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2)
async def get_greetings(self): global v2_hits global version_found_in_v2_step_1_0, version_found_in_v2_step_1_1 global version_found_in_v2_step_2_0, version_found_in_v2_step_2_1 global v2_done v2_hits += 1 version_found_in_v2_step_1_0 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2) version_found_in_v2_step_1_1 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2) await Workflow.sleep(60) version_found_in_v2_step_2_0 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2) version_found_in_v2_step_2_1 = Workflow.get_version( "first-item", DEFAULT_VERSION, 2) v2_done = True