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

Lock a task #4

Open
billyshambrook opened this issue Jan 18, 2016 · 0 comments
Open

Lock a task #4

billyshambrook opened this issue Jan 18, 2016 · 0 comments
Assignees
Milestone

Comments

@billyshambrook
Copy link
Owner

Currently when you get a task, it removes it from the queue. This means if the worker that picked up the task fails, it must put the task back on the queue itself.

Instead, when you get the task, it should lock it to the worker, and the worker can choose to either consume (delete) the task if it has processed it successfully, or release the lock and let another worker pick it up. If the worker dies unexpectedly, the lock should be released.

@billyshambrook billyshambrook self-assigned this Jan 18, 2016
@billyshambrook billyshambrook added this to the 0.1.0 milestone Jan 18, 2016
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

No branches or pull requests

1 participant