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

Remove Schmooze in favour of built in fork #53

Merged
merged 1 commit into from
May 12, 2020
Merged

Conversation

abrom
Copy link
Contributor

@abrom abrom commented May 8, 2020

There is a potential process leak style issue where successive calls to Schmooze will result in node processes being started and not being cleaned up. This also appears to have the side effect of the node process preventing regular Chrome from being able to quit due to some sort of shared memory mutex shared with Chromium that the node process is somehow holding on to. The process is not cleaned up due to how Schmooze uses the Ruby garbage collector to clean up the node process, which has been seen to potentially stick around for a considerable amount of time. If enough Grover instances were launched it would likely result in some sort of resource contention.

Given Grover instantiates a new instance of the Schmooze processor for each call, there is really no need for the node process to be kept alive once the document conversion is complete, thus this PR removes Schmooze in favour of a built in fork that is somewhat tailored for the Grover process.

@abrom abrom force-pushed the replace-schmooze branch from 87c07f2 to 1432e66 Compare May 9, 2020 14:46
Clean up node processor class
Refactor some duplicate function in grover class
Move appropriate grover specs into processor spec
Update TravisCI badge to specify branch
@abrom abrom force-pushed the replace-schmooze branch from 4c27a81 to f430e72 Compare May 10, 2020 06:06
Copy link

@scottharvey scottharvey left a comment

Choose a reason for hiding this comment

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

94fdf75b-5bea-45d2-ab10-e4e0857b23a9.pdf

Looking good, I generated several PDFs including a classroom with all the features included and everything looks to be working well.

I'm happy with the code changes as well, nice one 👍

@abrom abrom merged commit d73569e into master May 12, 2020
@abrom abrom deleted the replace-schmooze branch May 12, 2020 02:41
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