Skip to content

Conversation

@yjbanov
Copy link
Contributor

@yjbanov yjbanov commented Aug 2, 2016

Instead of passing onKill/onCancel futures around, store running
processes in a global list. When a task times out, force-quit all
processes still in the list.

Fixes #22

/cc @cbracken

Copy link
Member

Choose a reason for hiding this comment

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

Should this be set in startProcess()?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

startProcess() instantiates this class so there won't be any difference. Is there some advantage that I'm missing?

Copy link
Member

Choose a reason for hiding this comment

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

Nope my bad. Missed that it instantiates this and throws it in the _runningProcesses list. Why isn't startProcess static?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

It's better than static, it's a top-level function :)

@cbracken
Copy link
Member

cbracken commented Aug 2, 2016

lgtm with just a couple minor nits/questions.

Instead of passing `onKill`/`onCancel` futures around, store running
processes in a global list. When a task times out, force-quit all
processes still in the list.
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