Skip to content

Clean up AsyncProcess handling - #1324

Merged
mrocklin merged 3 commits into
dask:masterfrom
mrocklin:async-process-follow-on
Aug 14, 2017
Merged

mrocklin merged 3 commits into
dask:masterfrom
mrocklin:async-process-follow-on

Conversation

@mrocklin

Copy link
Copy Markdown
Member

We did a hasty merge in #1317 . This includes a few follow on changes.

cc @pitrou

We did a hasty merge in dask#1317 .  This includes a few follow on changes.
@mrocklin
mrocklin force-pushed the async-process-follow-on branch from 0720b7d to a75f9c2 Compare August 11, 2017 18:14
Comment thread distributed/process.py Outdated
self._loop.add_callback(self._on_exit, exitcode)
finally:
self = None # lose reference
q.put({'op': 'stop'})

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The problem here is that the message queue won't process any more messages. So it the user issues, says, yield process.terminate() afterwards, it will never return.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is there an approach that you recommend here? To be honest I'm not very familiar with this part of the code.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just let the finalizer do its job. It will trigger on close() or on garbage collection.

@mrocklin

Copy link
Copy Markdown
Member Author

Merging this soon if there are no further comments

@mrocklin
mrocklin merged commit b543677 into dask:master Aug 14, 2017
@mrocklin
mrocklin deleted the async-process-follow-on branch August 14, 2017 16:44
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

Successfully merging this pull request may close these issues.

2 participants