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

Outstanding task on client but hub says completed when using broadcast view #882

Open
dalbabur opened this issue May 22, 2024 · 0 comments
Labels

Comments

@dalbabur
Copy link

I want to purge_everything or purge_local_results but I'm getting RuntimeError: Can't purge outstanding tasks: ...
The reason I want to purge is that after a couple of tasks my engines memory seems to get full and slows down the process. I'm trying to figure out if it's a memory issue related to ipyparallel or something related to the tasks.

Here is a rough sketch of what I'm doing:

do some setup:

  from ipyparallel import Client, Reference
  rc = Client(client_args, client_kwargs)
  view = rc.broadcast_view(view_args, view_kwargs)
  view.is_coalescing = False
  view.apply_sync( # do some setup stuff )

then:

  ar  = view.apply( # do the real work, and pickle it)
  fvs = np.array(sum([pickle.loads(fv) for fv in ar.get()],[]))

  view.client.purge_local_results('all') # this says there are outstanding tasks
  view.client.queue_status() # this says all tasks are complete
@minrk minrk added the bug label Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants