Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@ public interface RuntimeFactory extends AutoCloseable {
* Create a function container to execute a java instance.
*
* @param instanceConfig java instance config
* @param codeFile code file
* @param expectedHealthCheckInterval expected health check interval in seconds
* @return function container to start/stop instance
*/
Runtime createContainer(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ public void start() throws Exception {
details.getName(), this.instanceConfig.getInstanceId());

runtime = runtimeFactory.createContainer(this.instanceConfig, codeFile, originalCodeFileName,
instanceLivenessCheckFreqMs * 1000);
instanceLivenessCheckFreqMs / 1000);

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

we should also rename "instanceLivenessCheckFreqMs" since it has "Ms" at the end to indicate its in milliseconds.

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.

I don't understand your comment here. "instanceLivenessCheckFreqMs" is in milliseconds, and have "ms" at the end is clear. Here we divide it by 1000 to convert it to seconds.

runtime.start();

// monitor function runtime to make sure it is running. If not, restart the function runtime
Expand Down