-
Notifications
You must be signed in to change notification settings - Fork 909
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
Move flow folder, fix tool warning and fix progress bar #2520
Conversation
log_pattern = re.compile(r".*execution.bulk\s+INFO\s+Finished (\d+) / (\d+) lines\.") | ||
finished_log_pattern = re.compile(r".*execution.bulk\s+INFO\s+Finished (\d+) / (\d+) lines\.") | ||
progress_log_pattern = re.compile( | ||
r".*execution\.bulk\s+INFO\s+\[Lines]\s+\[Finished:\s+(\d+)]\s+\[Processing:\s+(\d+)]\s+\[Pending:\s+(\d+)]" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we ignore [Lines]
from regrex pattern? Maybe more robust.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated. please check again
total = finished + processing + pending | ||
if progress_bar is None: | ||
progress_bar = tqdm(total=total, desc="Processing", miniters=1, file=sys.stdout) | ||
time.sleep(0.1) # wait for 0.1 second to show the progress bar on next line |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
due to tqdm issue, need to wait for 0.1 second between progress bar initialization and first update.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
updated to use mininterval
… path and fix comment
Description
Move flow folder, fix tool warning and fix progress bar.
Doc CI check: https://github.com/microsoft/promptflow/actions/runs/8464028391
All Promptflow Contribution checklist:
General Guidelines and Best Practices
Testing Guidelines