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

Add stop support for in process modules #15

Merged
merged 1 commit into from
Apr 10, 2024

Conversation

edaniels
Copy link
Contributor

@edaniels edaniels commented Apr 9, 2024

No description provided.

@edaniels edaniels requested a review from a team as a code owner April 9, 2024 23:48
@edaniels edaniels requested review from njooma and purplenicole730 and removed request for a team April 9, 2024 23:48
@edaniels edaniels changed the title Update version references to 0.0.1 Add stop support for in process modules Apr 10, 2024
@edaniels edaniels force-pushed the updateverrefs branch 2 times, most recently from 6cc60f5 to 8113fc0 Compare April 10, 2024 01:49
Copy link
Member

@abe-winter abe-winter left a comment

Choose a reason for hiding this comment

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

lgtm

@@ -45,4 +45,4 @@ fi
# [Native]Activity. It will give us all the android runtime dependencies we need.
${APP_PROCESS_NAME} -Djava.class.path="$SAFE_JAR_PATH" -Djava.library.path="$LIBRARY_PATH" \
Copy link
Member

Choose a reason for hiding this comment

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

not for today, but should we make this an exec? would prevent the extra sh proc from hanging around

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yeah probably!

@@ -90,7 +92,9 @@ public BaseModule(final String[] args) {
LOGGER.severe("[ERROR] Uncaught exception: " + throwable);
throwable.printStackTrace();
});
server = new Server(Collections.emptyList(), getServerBuilder(), new ModuleRPCService(this));
final Executor executor = Executors.newCachedThreadPool(Executors.defaultThreadFactory());
Copy link
Member

Choose a reason for hiding this comment

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

why this change? to have references to threads?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

more explicit about what kind of executor. not sure what default was and we use this in an another example

@edaniels edaniels merged commit 83ebdee into viamrobotics:main Apr 10, 2024
2 checks passed
@edaniels edaniels deleted the updateverrefs branch April 10, 2024 02:17
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