Skip to content
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

Example estimation and progress for job completion #24

Open
binkley opened this issue Jan 15, 2017 · 1 comment
Open

Example estimation and progress for job completion #24

binkley opened this issue Jan 15, 2017 · 1 comment

Comments

@binkley
Copy link
Owner

binkley commented Jan 15, 2017

AS A caller of long-running REST jobs
I WANT an estimation of completion when available
SO THAT I can let the user know

AS A caller of long-running REST jobs
I WANT completion progress when available
SO THAT I can let the user know

Context

See http://farazdagi.com/blog/2014/rest-long-running-jobs/

Acceptance criteria

GIVEN a REST service for long-running jobs
WHEN I submit a new job
THEN the response should include an estimation of completion if an estimation is available

GIVEN a REST service for long-running jobs
WHEN I submit a new job
THEN the response should indicate unknown when an estimation is not available

GIVEN a long-running REST job
WHEN I poll for progress
THEN the response should indicate progress when progress is available

GIVEN a long-running REST job
WHEN I poll for progress
THEN the response should indicate unknown when progress is not available

@binkley
Copy link
Owner Author

binkley commented Jan 21, 2017

Consider applying https://blog.acolyer.org/2017/01/13/incremental-consistency-guarantees-for-replicated-objects/.

The idea is an initial request for /queue/Brian or /greetings/Brian return placeholders awaiting completion, which then return the final response.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant