-
Notifications
You must be signed in to change notification settings - Fork 6k
[Bug]: Human-in-the-loop not working correctly with Nested Workflow #18848
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The timeout error you’re seeing ( To resolve this, you should explicitly set the timeout parameter to None (for no timeout) or to a higher value when you instantiate your workflows. For example: workflow = HumanInTheLoopWorkflow2(timeout=None)
sub_wf = HITLWorkflow(timeout=None) This approach is supported by both the documentation and similar issues reported by other users. Setting
If you want a finite timeout, you can set it to a higher value (e.g., In summary: To continue talking to Dosu, mention @dosu-bot. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
When setting |
@main-2983 the two workflows aren't really connected. Your outer workflow needs tk expose the events of the inner workflow |
When setting Here’s what is known and what you can try:
Potential causes and workarounds:
Summary: If the problem persists, consider sharing a minimal reproducible example and details about your runtime environment for further investigation. To continue talking to Dosu, mention @dosu-bot. Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other |
@logan-markewich Can you please provide me with examples? I found nothing on the llama-index documentation page |
@logan-markewich sorry for tagging you again, but can you provide me example how to "expose the events of the inner workflow" in a nested workflow? Or can you tell me what documentation/ code I need to explore to understand this concept |
@main-2983 What I mean is something like this
|
Bug Description
I try to replicate this example for Human-in-the-loop, but using nested workflow. I got TimeOut:
llama_index.core.workflow.errors.WorkflowTimeoutError: Operation timed out after 10.0 seconds
Version
0.12.37
Steps to Reproduce
First I rewrite the
HumanInTheLoopWorkflow
to accept another workflowThe actually Human in the Loop sub-workflow
Then I run the workflow using the code snippet
Relevant Logs/Tracbacks
The text was updated successfully, but these errors were encountered: