Skip to content

Implement task status API and streaming API - #1134

Closed
pcmoritz wants to merge 2 commits into
ray-project:masterfrom
pcmoritz:task-status-stream
Closed

pcmoritz wants to merge 2 commits into
ray-project:masterfrom
pcmoritz:task-status-stream

Conversation

@pcmoritz

@pcmoritz pcmoritz commented Oct 16, 2017 •

Copy link
Copy Markdown
Contributor

This adds some basic functionality to report task progress while a task is running and can also be used to implement tasks that are streams.

Example:

import ray
import time

ray.init()

@ray.remote(stream=True)                                                                                                                                                     
def f():                                                                                                                                                                     
    for i in range(5):
        ray.yield_("hello" + str(i))
        time.sleep(5.0)

object_id, stream = f.remote()

for s in stream:              
    print(s, ray.get(s))

TODOs:

  • Documentation
  • Tests

@pcmoritz pcmoritz changed the title Implement task status and streaming API Implement task status API and streaming API Oct 16, 2017
@robertnishihara

Copy link
Copy Markdown
Collaborator

#953

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/2147/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/2148/
Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Merged build finished. Test FAILed.

@AmplabJenkins

Copy link
Copy Markdown

Test FAILed.
Refer to this link for build results (access rights to CI server needed):
https://amplab.cs.berkeley.edu/jenkins//job/Ray-PRB/2149/
Test FAILed.

@pcmoritz

Copy link
Copy Markdown
Contributor Author

superseded by actor handle passing, see #953

@pcmoritz pcmoritz closed this Nov 27, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants