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

[i18n] call process.exit() on task complete #44092

Merged
merged 1 commit into from
Aug 27, 2019

Conversation

Bamieh
Copy link
Member

@Bamieh Bamieh commented Aug 27, 2019

call process.exit() on i18n_extact complete. this ensures the process closes when spawned from a child process.

Needed when running translation scripts in this repo: https://github.com/elastic/translations

call `process.exit()` on `i18n_extact` complete. this ensures the process closes when spawned from a child process.
@Bamieh Bamieh added Project:i18n v8.0.0 release_note:skip Skip the PR/issue when compiling release notes v7.4.0 v7.5.0 labels Aug 27, 2019
@Bamieh Bamieh requested a review from bmcconaghy August 27, 2019 13:30
@Bamieh Bamieh requested a review from a team as a code owner August 27, 2019 13:30
Copy link
Contributor

@bmcconaghy bmcconaghy left a comment

Choose a reason for hiding this comment

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

Code LGTM

@elasticmachine
Copy link
Contributor

💚 Build Succeeded

Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

LGTM - was it removed by accident?

@Bamieh
Copy link
Member Author

Bamieh commented Aug 27, 2019

@jbudz its not needed when running it directly by calling node scripts/i18n_extract.js as the process exits normally. But it seems to only hang if it was called from a child_process.spawn so this attempts to solve it.

@Bamieh Bamieh merged commit cb17672 into master Aug 27, 2019
@Bamieh Bamieh deleted the i18n]-process-exit-on-complete branch August 27, 2019 21:46
Bamieh added a commit to Bamieh/kibana that referenced this pull request Aug 27, 2019
call `process.exit()` on `i18n_extact` complete. this ensures the process closes when spawned from a child process.
Bamieh added a commit to Bamieh/kibana that referenced this pull request Aug 27, 2019
call `process.exit()` on `i18n_extact` complete. this ensures the process closes when spawned from a child process.
Bamieh added a commit that referenced this pull request Aug 28, 2019
call `process.exit()` on `i18n_extact` complete. this ensures the process closes when spawned from a child process.
Bamieh added a commit that referenced this pull request Aug 28, 2019
call `process.exit()` on `i18n_extact` complete. this ensures the process closes when spawned from a child process.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Project:i18n release_note:skip Skip the PR/issue when compiling release notes v7.4.0 v7.5.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants