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

calling .abort on AsyncMapResult results in traceback #1564

Closed
ivanov opened this issue Apr 9, 2012 · 3 comments · Fixed by #1565
Closed

calling .abort on AsyncMapResult results in traceback #1564

ivanov opened this issue Apr 9, 2012 · 3 comments · Fixed by #1565
Assignees
Milestone

Comments

@ivanov
Copy link
Member

ivanov commented Apr 9, 2012

traceback says AsyncMapResult object has no attribute 'client'

@fperez just ran into this doing a live demo, here's the TB:

---------------------------------------------------------------------------
AttributeError                            Traceback (most recent call last)
/home/sgeadmin/<ipython-input-45-75c2b5e59cd8> in <module>()
----> 1 amr.abort()

/software/python-2.7.1-release/lib/python2.7/site-packages/IPython/parallel/client/asyncresult.pyc in abort(self)
    196         """abort my tasks."""
    197         assert not self.ready(), "Can't abort, I am already done!"
--> 198         return self.client.abort(self.msg_ids, targets=self._targets, block=True)
    199 
    200     @property

/software/python-2.7.1-release/lib/python2.7/site-packages/IPython/parallel/client/asyncresult.pyc in __getattr__(self, key)
    239         except (error.TimeoutError, KeyError):
    240             raise AttributeError("%r object has no attribute %r"%(
--> 241                     self.__class__.__name__, key))
    242 
    243     # asynchronous iterator:

AttributeError: 'AsyncMapResult' object has no attribute 'client'

Fernando said @minrk should be able to fix it before end of class :) (in an hour)

@minrk
Copy link
Member

minrk commented Apr 10, 2012

Argh, I was walking home, so I didn't see it. You are making me look bad taking so long to fix these things.

@minrk
Copy link
Member

minrk commented Apr 10, 2012

See PR #1565 for a fix.

@ghost ghost assigned minrk Apr 10, 2012
@ivanov
Copy link
Member Author

ivanov commented Apr 15, 2012

#1565 has been merged, so I'm closing this.

@ivanov ivanov closed this as completed Apr 15, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants