Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions 01_getting_started.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,8 @@ def main():
# Explicitly wait for results to avoid AttributeErrors on futures
results = [f.result() for f in futures]

# Add visual breathing room before results
console.print()
duration = time.perf_counter() - start_time

# Display results in a clean table for better readability
Expand Down Expand Up @@ -99,6 +101,8 @@ def main():
)

console.print(Rule("Next Step", style="blue"))
console.print(
"Try running [cyan]python 02_logging.py[/cyan] to learn about logging in Prefect!"
console.print(
"Try running [cyan]python 02_logging.py[/cyan] to learn about logging in Prefect!"
console.print()
Expand Down
8 changes: 7 additions & 1 deletion 02_logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,8 @@ def main():
# Explicitly wait for results to avoid AttributeErrors on futures
results = [f.result() for f in futures]

# Add visual breathing room before results
console.print()
duration = time.perf_counter() - start_time

# Display results in a clean table for better readability
Expand All @@ -98,6 +100,9 @@ def main():
console.print()

duration = time.perf_counter() - start_time
console.print(
Panel.fit(
f"[bold green]✨ Successfully processed {len(results)} customers with detailed logging in {duration:.2f}s![/bold green]",

console.print(
Panel.fit(
Expand All @@ -107,14 +112,15 @@ def main():
)
)

console.print(Rule("Conclusion", style="blue"))
console.print(Rule("Next Step", style="blue"))
console.print(Rule("Conclusion", style="blue"))
console.print(
"🎉 You've completed the Quickstart! Check out the [cyan]README.md[/cyan] for more features."
console.print()
console.print(Rule("🎉 Finishing Up", style="bold blue"))
console.print(
"[bold blue]🎉 You've completed the Quickstart! Check out the [cyan]README.md[/cyan] for more features.[/bold blue]"
"🎉 You've completed the Quickstart! Check out the [cyan]README.md[/cyan] for more features."
)

return results
Expand Down
Loading