-
Notifications
You must be signed in to change notification settings - Fork 72
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
Add get_task_status method to Algolia::Index class. #198
Conversation
…can get the status of a task without having to wait for it to finish.
…tributes get_task_status test.
3 similar comments
I have created an issue in case you guys don't want to go this way with adding the functionality to get a tasks status here #199 |
Awesome @srodman7689 👍 Thank you so much for contributing! |
spec/client_spec.rb
Outdated
@@ -693,7 +693,7 @@ def wait_global_key_missing(key) | |||
|
|||
it 'Check attributes get_task_status' do | |||
task = @index.add_object!({ :name => "John Doe", :email => "john@doe.org" }, "1") | |||
status = @index.get_task_status(task["taskID"]) | |||
status = @index.get_task_status(task["objectID"]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This was actually correct, we what to get the status of the taskID
not the objectID
.
…Check attributes get_task_status test." This reverts commit 19f1733.
Travis will fail because of the encrypted API keys we're using. I've run it locally 👍 |
After looking through the source of this library I realized that there wasn't a way to just check the status of a task instead of waiting for a task to finish. So I decided to create a pull request in the hopes that you guys would merge it and add this functionality. I could really use it.