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

atomic enqueue-and-claim for short-lived tasks #17

Open
bfs opened this issue Sep 4, 2013 · 3 comments
Open

atomic enqueue-and-claim for short-lived tasks #17

bfs opened this issue Sep 4, 2013 · 3 comments

Comments

@bfs
Copy link

bfs commented Sep 4, 2013

It should be possible to enqueue and task and claim it in a single transaction such that the process enqueuing the task can also execute it while relying on the rest of the infrastructure (logging, state reporting, async polling, ui tied to aforementioned, etc) as long running tasks.

The reasoning, aside from shared code is that some tasks are known to be short and queue delay could look ugly to end users. Imagine I upload a file for you to process. If it's 1GB, I expect to wait for it to be processed. If it's 5 lines, I think less of you whilst I watch a spinner...

@ghost ghost self-assigned this Sep 4, 2013
@ghost ghost mentioned this issue Sep 4, 2013
@dirtyvagabond
Copy link

I always think less of people whilst I watch a spinner...

@eric
Copy link
Contributor

eric commented Jul 30, 2014

Would you expect these tasks to be eligible to be re-claimed once the current claim expired (if the claim was never completed)?

@aphyr
Copy link
Contributor

aphyr commented Jul 30, 2014

Yeah, they should follow the normal reclaim logic if there's no completion.

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

4 participants