We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In the document, you said that a flow could have multiple start methods and they will run parallelly
However, when I test this feature, I have found that two start methods are just run one after another, not parallelly.
Just run the following code:
from crewai.flow.flow import Flow, listen, start import time import string class StructuredExampleFlow(Flow): @start() def first_method(self): for i in range(10): print(i) time.sleep(1) return "first done" @start() def second_method(self): for x in string.ascii_lowercase: print(x) time.sleep(1) return "second done" @listen(first_method) def first_method_listener(self, status): print(status) @listen(second_method) def second_method_listener(self, status): print(status) flow = StructuredExampleFlow() flow.kickoff()
Numbers and letters should be printed alternately.
macOS Sonoma
3.12
0.95.0
0.25.8
Venv
None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Description
In the document, you said that a flow could have multiple start methods and they will run parallelly
However, when I test this feature, I have found that two start methods are just run one after another, not parallelly.
Steps to Reproduce
Just run the following code:
Expected behavior
Numbers and letters should be printed alternately.
Screenshots/Code snippets
Operating System
macOS Sonoma
Python Version
3.12
crewAI Version
0.95.0
crewAI Tools Version
0.25.8
Virtual Environment
Venv
Evidence
Possible Solution
None
Additional context
None
The text was updated successfully, but these errors were encountered: