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

purge_results with jobid crashing - looking for insight #4721

Closed
satra opened this issue Dec 19, 2013 · 2 comments · Fixed by #4722
Closed

purge_results with jobid crashing - looking for insight #4721

satra opened this issue Dec 19, 2013 · 2 comments · Fixed by #4722
Labels
Milestone

Comments

@satra
Copy link
Contributor

satra commented Dec 19, 2013

ipython 1.1.0 in anaconda on osx mavericks

i used to have the following line which appeared to work fine till recently:

client.purge_results(self.taskmap[taskid])

however, i'm getting the following error now:

AssertionError: Can't purge a client with outstanding tasks!

and i see the assertion statement that raises this. however i don't see any docs on what causes this error and how best to fix this.

my intent with this was to clear that specific job out of existence as far as ipython was concerned. i've retrieved the results, i don't want any aspect of the job to take up memory anywhere (i send thousands of jobs to the client and at least initially when we implemented this - the memory was increasing as more jobs ran).

@minrk
Copy link
Member

minrk commented Dec 19, 2013

The check seems to be a bit overzealous, I'll look into clearing up the logic.

@minrk
Copy link
Member

minrk commented Dec 19, 2013

Try #4722.

minrk added a commit that referenced this issue Dec 24, 2013
…t outstanding

raise RuntimeError, not assert

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

Successfully merging a pull request may close this issue.

2 participants