Skip to content

Commit

Permalink
Fixes example image
Browse files Browse the repository at this point in the history
  • Loading branch information
skrawcz committed Jan 2, 2025
1 parent 037c915 commit cecc050
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions examples/parallelism/lazy_threadpool_execution/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,11 @@ HTTP requests, reading/writing to disk, LLM API calls, etc.

> Note: this adapter does not support DAGs with Parallelizable and Collect functions; create an issue if you need this feature.
![DAG](my_functions.png)

The above image shows the DAG that will be executed. You can see from the structure
that the DAG can be parallelized, i.e. the left most nodes can be executed in parallel.

When you execute `run.py`, you will output that shows:

1. The DAG running in parallel -- check the image against what is printed.
Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
2 changes: 1 addition & 1 deletion examples/parallelism/lazy_threadpool_execution/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
start = time.time()
adapter = h_threadpool.FutureAdapter()
dr = driver.Builder().with_modules(my_functions).with_adapters(adapter).build()
dr.display_all_functions("my_funtions.png")
dr.display_all_functions("my_functions.png")
r = dr.execute(["s", "x", "a"])
print("got return from dr")
print(r)
Expand Down

0 comments on commit cecc050

Please sign in to comment.