Working through the sample for the 9/11/25 AI Insiders Bug Bash. All the samples worked for me (after getting the environment setup) until sample 07, second request, POST http://localhost:7071/api/hitl/run. Errors right away though the code reads that it should not timeout for 72 hours.
func start
'local.settings.json' found in root directory (/Users/jim/develop/agent-framework/agent-framework/python/samples/getting_started/azure_functions/07_single_agent_orchestration_hitl).
Resolving worker runtime to 'python'.
Found Python version 3.10.19 (python3).
Azure Functions Core Tools
Core Tools Version: 4.4.0+6b60f13b2a58ef441cdac3069b7b5737e0b2b93c (64-bit)
Function Runtime Version: 4.1043.200.25453
Skipping 'AZURE_OPENAI_ENDPOINT' from local settings as it's already defined in current environment variables.
Skipping 'AZURE_OPENAI_CHAT_DEPLOYMENT_NAME' from local settings as it's already defined in current environment variables.
[2025-11-11T21:48:46.379Z] Durable Functions Distributed Tracing V2 is GA now! Learn how to enable the feature by visiting aka.ms/durable-distributed-tracing. To disable this message, you can configure your distributed trace version to "V2" or "None".
[2025-11-11T21:48:46.570Z] Worker process started and initialized.
Functions:
get_orchestration_status: [GET] http://localhost:7071/api/hitl/status/{instanceId}
health_check: [GET] http://localhost:7071/api/health
send_human_approval: [POST] http://localhost:7071/api/hitl/approve/{instanceId}
start_content_generation: [POST] http://localhost:7071/api/hitl/run
WriterAgent_run: [POST] http://localhost:7071/api/agents/WriterAgent/run
content_generation_hitl_orchestration: orchestrationTrigger
dafx-WriterAgent: entityTrigger
notify_user_for_approval: activityTrigger
publish_content: activityTrigger
For detailed output, run func with --verbose flag.
[2025-11-11T21:48:51.568Z] Host lock lease acquired by instance ID '00000000000000000000000055857B67'.
[2025-11-11T21:48:57.249Z] Executing 'Functions.start_content_generation' (Reason='This function was programmatically called via the host APIs.', Id=8e769e94-b157-46cf-90fb-3efc8eff290b)
[2025-11-11T21:48:57.330Z] Executed 'Functions.start_content_generation' (Succeeded, Id=8e769e94-b157-46cf-90fb-3efc8eff290b, Duration=94ms)
[2025-11-11T21:48:57.354Z] Executing 'Functions.content_generation_hitl_orchestration' (Reason='(null)', Id=38cac52c-06dc-4883-97b9-cfd9021aaa2d)
[2025-11-11T21:48:57.383Z] Executed 'Functions.content_generation_hitl_orchestration' (Succeeded, Id=38cac52c-06dc-4883-97b9-cfd9021aaa2d, Duration=32ms)
[2025-11-11T21:48:57.411Z] Executing 'Functions.dafx-WriterAgent' (Reason='(null)', Id=2a841908-c10d-4455-9496-a49f8c131e2c)
[2025-11-11T21:48:57.418Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'user'}, 'contents': [{'type': 'text', 'text': "Write a short article about 'The Future of Artificial Intelligence'."}], 'additional_properties': {'timestamp': '2025-11-11T21:48:57.414870+00:00', 'correlation_id': 'ea7208f2-1a08-5768-8fe1-fb1139799fd6'}}
[2025-11-11T21:48:57.419Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'user'}, 'contents': [{'type': 'text', 'text': "Write a short article about 'The Future of Artificial Intelligence'."}], 'additional_properties': {'timestamp': '2025-11-11T21:48:57.414870+00:00', 'correlation_id': 'ea7208f2-1a08-5768-8fe1-fb1139799fd6'}}
[2025-11-11T21:48:58.164Z] HTTP Request: POST https://admin-8080-resource.openai.azure.com/openai/deployments/gpt-4.1-mini/chat/completions?api-version=2024-10-21 "HTTP/1.1 200 OK"
[2025-11-11T21:49:00.453Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'assistant'}, 'contents': [{'type': 'text', 'text': '{"title":"The Future of Artificial Intelligence","content":"Artificial Intelligence (AI) is rapidly evolving, shaping the future of technology and society in unprecedented ways. As AI continues to advance, it promises to revolutionize industries such as healthcare, finance, transportation, and education by enhancing efficiency, accuracy, and personalization. The integration of AI with technologies like quantum computing and 5G networks is expected to accelerate innovation, leading to smarter decision-making and automation. However, the future of AI also raises important ethical considerations, including privacy, job displacement, and bias mitigation, which require careful attention and regulation. Overall, AI stands poised to be a transformative force, driving progress while challenging us to balance innovation with responsibility."}'}], 'author_name': 'WriterAgent', 'message_id': 'chatcmpl-CaqWQvOiD3LhgGKprqxNZgoOWZKVU', 'additional_properties': {}}
[2025-11-11T21:49:00.454Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'assistant'}, 'contents': [{'type': 'text', 'text': '{"title":"The Future of Artificial Intelligence","content":"Artificial Intelligence (AI) is rapidly evolving, shaping the future of technology and society in unprecedented ways. As AI continues to advance, it promises to revolutionize industries such as healthcare, finance, transportation, and education by enhancing efficiency, accuracy, and personalization. The integration of AI with technologies like quantum computing and 5G networks is expected to accelerate innovation, leading to smarter decision-making and automation. However, the future of AI also raises important ethical considerations, including privacy, job displacement, and bias mitigation, which require careful attention and regulation. Overall, AI stands poised to be a transformative force, driving progress while challenging us to balance innovation with responsibility."}'}], 'author_name': 'WriterAgent', 'message_id': 'chatcmpl-CaqWQvOiD3LhgGKprqxNZgoOWZKVU', 'additional_properties': {}}
[2025-11-11T21:49:00.484Z] Executed 'Functions.dafx-WriterAgent' (Succeeded, Id=2a841908-c10d-4455-9496-a49f8c131e2c, Duration=3074ms)
[2025-11-11T21:49:00.516Z] Executing 'Functions.content_generation_hitl_orchestration' (Reason='(null)', Id=6fc5c2ff-d28f-47d1-8eb8-3305cce5575d)
[2025-11-11T21:49:00.527Z] Executed 'Functions.content_generation_hitl_orchestration' (Succeeded, Id=6fc5c2ff-d28f-47d1-8eb8-3305cce5575d, Duration=12ms)
[2025-11-11T21:49:00.553Z] Executing 'Functions.notify_user_for_approval' (Reason='(null)', Id=f228ce79-0765-45ea-acf4-b40321727cdb)
[2025-11-11T21:49:00.555Z] NOTIFICATION: Please review the following content for approval:
[2025-11-11T21:49:00.555Z] Title: The Future of Artificial Intelligence
[2025-11-11T21:49:00.555Z] Content: Artificial Intelligence (AI) is rapidly evolving, shaping the future of technology and society in unprecedented ways. As AI continues to advance, it promises to revolutionize industries such as healthcare, finance, transportation, and education by enhancing efficiency, accuracy, and personalization. The integration of AI with technologies like quantum computing and 5G networks is expected to accelerate innovation, leading to smarter decision-making and automation. However, the future of AI also raises important ethical considerations, including privacy, job displacement, and bias mitigation, which require careful attention and regulation. Overall, AI stands poised to be a transformative force, driving progress while challenging us to balance innovation with responsibility.
[2025-11-11T21:49:00.555Z] Use the approval endpoint to approve or reject this content.
[2025-11-11T21:49:00.555Z] Executed 'Functions.notify_user_for_approval' (Succeeded, Id=f228ce79-0765-45ea-acf4-b40321727cdb, Duration=3ms)
[2025-11-11T21:49:00.580Z] Executing 'Functions.content_generation_hitl_orchestration' (Reason='(null)', Id=16c0025c-d02b-4d1d-bbf1-cafb6cc15cf2)
[2025-11-11T21:49:00.588Z] Executed 'Functions.content_generation_hitl_orchestration' (Succeeded, Id=16c0025c-d02b-4d1d-bbf1-cafb6cc15cf2, Duration=7ms)
[2025-11-11T21:49:05.176Z] Executing 'Functions.start_content_generation' (Reason='This function was programmatically called via the host APIs.', Id=e73dff7f-c5b2-48ed-aa50-ba81a023bd29)
[2025-11-11T21:49:05.191Z] Executed 'Functions.start_content_generation' (Succeeded, Id=e73dff7f-c5b2-48ed-aa50-ba81a023bd29, Duration=21ms)
[2025-11-11T21:49:05.199Z] Executing 'Functions.content_generation_hitl_orchestration' (Reason='(null)', Id=4ef668c0-fc53-4ad9-b6ff-296c0a5e5fd3)
[2025-11-11T21:49:05.202Z] Executed 'Functions.content_generation_hitl_orchestration' (Succeeded, Id=4ef668c0-fc53-4ad9-b6ff-296c0a5e5fd3, Duration=2ms)
[2025-11-11T21:49:05.218Z] Executing 'Functions.dafx-WriterAgent' (Reason='(null)', Id=99617684-9a35-4762-a817-69a111b4bda3)
[2025-11-11T21:49:05.221Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'user'}, 'contents': [{'type': 'text', 'text': "Write a short article about 'The Future of Artificial Intelligence'."}], 'additional_properties': {'timestamp': '2025-11-11T21:49:05.219209+00:00', 'correlation_id': 'b644036c-f01c-56cb-a1ae-0a3ca019dc5a'}}
[2025-11-11T21:49:05.222Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'user'}, 'contents': [{'type': 'text', 'text': "Write a short article about 'The Future of Artificial Intelligence'."}], 'additional_properties': {'timestamp': '2025-11-11T21:49:05.219209+00:00', 'correlation_id': 'b644036c-f01c-56cb-a1ae-0a3ca019dc5a'}}
[2025-11-11T21:49:05.448Z] HTTP Request: POST https://admin-8080-resource.openai.azure.com/openai/deployments/gpt-4.1-mini/chat/completions?api-version=2024-10-21 "HTTP/1.1 200 OK"
[2025-11-11T21:49:09.572Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'assistant'}, 'contents': [{'type': 'text', 'text': '{"title":"The Future of Artificial Intelligence","content":"Artificial Intelligence (AI) is poised to revolutionize numerous aspects of our daily lives and industries in the coming years. Advances in machine learning, natural language processing, and robotics continue to drive AI\'s capabilities beyond simple automation toward more sophisticated decision-making and creativity. The future promises AI systems that can understand context better, exhibit emotional intelligence, and collaborate seamlessly with humans.\\n\\nAI is expected to transform sectors such as healthcare, education, transportation, and entertainment by offering personalized experiences and improving efficiency. Ethical considerations and addressing biases in AI algorithms will be critical to ensuring that the technology benefits society fairly and safely. Moreover, the integration of AI with emerging technologies like quantum computing may unlock unprecedented processing power, propelling innovation further.\\n\\nAs AI evolves, it will create new opportunities and challenges. Preparing the workforce for the AI-driven economy through education and policy will be important. Ultimately, the future of Artificial Intelligence holds immense potential to enhance human capabilities and address complex global problems, ushering in a new era of technological progress."}'}], 'author_name': 'WriterAgent', 'message_id': 'chatcmpl-CaqWXZLaa6Ews3MJ5q0cQuA0Y6LoZ', 'additional_properties': {}}
[2025-11-11T21:49:09.573Z] {'type': 'chat_message', 'role': {'type': 'role', 'value': 'assistant'}, 'contents': [{'type': 'text', 'text': '{"title":"The Future of Artificial Intelligence","content":"Artificial Intelligence (AI) is poised to revolutionize numerous aspects of our daily lives and industries in the coming years. Advances in machine learning, natural language processing, and robotics continue to drive AI\'s capabilities beyond simple automation toward more sophisticated decision-making and creativity. The future promises AI systems that can understand context better, exhibit emotional intelligence, and collaborate seamlessly with humans.\\n\\nAI is expected to transform sectors such as healthcare, education, transportation, and entertainment by offering personalized experiences and improving efficiency. Ethical considerations and addressing biases in AI algorithms will be critical to ensuring that the technology benefits society fairly and safely. Moreover, the integration of AI with emerging technologies like quantum computing may unlock unprecedented processing power, propelling innovation further.\\n\\nAs AI evolves, it will create new opportunities and challenges. Preparing the workforce for the AI-driven economy through education and policy will be important. Ultimately, the future of Artificial Intelligence holds immense potential to enhance human capabilities and address complex global problems, ushering in a new era of technological progress."}'}], 'author_name': 'WriterAgent', 'message_id': 'chatcmpl-CaqWXZLaa6Ews3MJ5q0cQuA0Y6LoZ', 'additional_properties': {}}
[2025-11-11T21:49:09.574Z] Executed 'Functions.dafx-WriterAgent' (Succeeded, Id=99617684-9a35-4762-a817-69a111b4bda3, Duration=4356ms)
[2025-11-11T21:49:09.590Z] Executing 'Functions.content_generation_hitl_orchestration' (Reason='(null)', Id=10a710f1-20c1-4728-9f67-e4edae9e9c99)
[2025-11-11T21:49:09.593Z] Executed 'Functions.content_generation_hitl_orchestration' (Succeeded, Id=10a710f1-20c1-4728-9f67-e4edae9e9c99, Duration=3ms)
[2025-11-11T21:49:09.605Z] Executing 'Functions.notify_user_for_approval' (Reason='(null)', Id=c38d1a0a-ebfe-4e3b-9834-697477f3cc0d)
[2025-11-11T21:49:09.610Z] NOTIFICATION: Please review the following content for approval:
[2025-11-11T21:49:09.610Z] Title: The Future of Artificial Intelligence
[2025-11-11T21:49:09.610Z] Content: Artificial Intelligence (AI) is poised to revolutionize numerous aspects of our daily lives and industries in the coming years. Advances in machine learning, natural language processing, and robotics continue to drive AI's capabilities beyond simple automation toward more sophisticated decision-making and creativity. The future promises AI systems that can understand context better, exhibit emotional intelligence, and collaborate seamlessly with humans.
[2025-11-11T21:49:09.610Z]
[2025-11-11T21:49:09.610Z] AI is expected to transform sectors such as healthcare, education, transportation, and entertainment by offering personalized experiences and improving efficiency. Ethical considerations and addressing biases in AI algorithms will be critical to ensuring that the technology benefits society fairly and safely. Moreover, the integration of AI with emerging technologies like quantum computing may unlock unprecedented processing power, propelling innovation further.
[2025-11-11T21:49:09.610Z]
[2025-11-11T21:49:09.610Z] As AI evolves, it will create new opportunities and challenges. Preparing the workforce for the AI-driven economy through education and policy will be important. Ultimately, the future of Artificial Intelligence holds immense potential to enhance human capabilities and address complex global problems, ushering in a new era of technological progress.
[2025-11-11T21:49:09.610Z] Use the approval endpoint to approve or reject this content.
[2025-11-11T21:49:09.610Z] Executed 'Functions.notify_user_for_approval' (Succeeded, Id=c38d1a0a-ebfe-4e3b-9834-697477f3cc0d, Duration=5ms)
[2025-11-11T21:49:09.622Z] Executing 'Functions.content_generation_hitl_orchestration' (Reason='(null)', Id=b7135a5a-d965-4cc0-be05-11e9e742019f)
[2025-11-11T21:49:09.625Z] Executed 'Functions.content_generation_hitl_orchestration' (Succeeded, Id=b7135a5a-d965-4cc0-be05-11e9e742019f, Duration=3ms)
[2025-11-11T21:49:12.887Z] Executing 'Functions.content_generation_hitl_orchestration' (Reason='(null)', Id=6982da8b-6002-4f11-b3e7-f800a2c7c9f3)
**[2025-11-11T21:49:12.910Z] 4a3c9c283c984fefa4ad9c7a4dc51869: Function 'content_generation_hitl_orchestration (Orchestrator)' failed with an error. Reason: DurableTask.Core.Exceptions.OrchestrationFailureException
[2025-11-11T21:49:12.910Z] at Microsoft.Azure.WebJobs.Extensions.DurableTask.OutOfProcOrchestrationShim.ScheduleDurableTaskEvents(OrchestrationInvocationResult result) in /_/src/WebJobs.Extensions.DurableTask/Listener/OutOfProcOrchestrationShim.cs:line 88
[2025-11-11T21:49:12.910Z] at Microsoft.Azure.WebJobs.Extensions.DurableTask.OutOfProcOrchestrationShim.HandleDurableTaskReplay(OrchestrationInvocationResult executionJson) in /_/src/WebJobs.Extensions.DurableTask/Listener/OutOfProcOrchestrationShim.cs:line 65
[2025-11-11T21:49:12.910Z] at Microsoft.Azure.WebJobs.Extensions.DurableTask.TaskOrchestrationShim.TraceAndReplay(Object result, Exception ex) in /_/src/WebJobs.Extensions.DurableTask/Listener/TaskOrchestrationShim.cs:line 242
[2025-11-11T21:49:12.910Z] at Microsoft.Azure.WebJobs.Extensions.DurableTask.TaskOrchestrationShim.InvokeUserCodeAndHandleResults(RegisteredFunctionInfo orchestratorInfo, OrchestrationContext innerContext) in /_/src/WebJobs.Extensions.DurableTask/Listener/TaskOrchestrationShim.cs:line 181. IsReplay: False. State: Failed. RuntimeStatus: Failed. HubName: default. AppName: . SlotName: . ExtensionVersion: 3.5.0. SequenceNumber: 38. TaskEventId: -1
[2025-11-11T21:49:12.915Z] Executed 'Functions.content_generation_hitl_orchestration' (Failed, Id=6982da8b-6002-4f11-b3e7-f800a2c7c9f3, Duration=28ms)
[2025-11-11T21:49:12.915Z] System.Private.CoreLib: Exception while executing function: Functions.content_generation_hitl_orchestration. Microsoft.Azure.WebJobs.Extensions.DurableTask: Orchestrator function 'content_generation_hitl_orchestration' failed: Human approval timed out after 0.001 hour(s).**
Working through the sample for the 9/11/25 AI Insiders Bug Bash. All the samples worked for me (after getting the environment setup) until sample 07, second request, POST http://localhost:7071/api/hitl/run. Errors right away though the code reads that it should not timeout for 72 hours.
Full output (error in bold):