Skip to content

Commit

Permalink
[Workflow] Fix typo in workflow event doc (ray-project#26686)
Browse files Browse the repository at this point in the history
Signed-off-by: Siyuan Zhuang <[email protected]>
  • Loading branch information
suquark committed Jul 19, 2022
1 parent eb4ed49 commit 5b93716
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions doc/source/workflows/events.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ Workflow events are a special type of workflow task. They "finish" when the even

.. code-block:: python
from ray import workflow
import time
import ray
from ray import workflow
# Create an event which finishes after 60 seconds.
event1_task = workflow.wait_for_event(workflow.event_listener.TimerListener, time.time() + 60)
Expand All @@ -34,7 +35,7 @@ Workflow events are a special type of workflow task. They "finish" when the even
return args
# Gather will run after 60 seconds, when both event1 and event2 are done.
workflow.run(gather.bind(event1_task, event_2_task))
workflow.run(gather.bind(event1_task, event2_task))
Custom event listeners
Expand Down

0 comments on commit 5b93716

Please sign in to comment.