Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
nicoloboschi committed May 20, 2024
1 parent e145b71 commit 5bc7f2f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public final class ApplicationDeployer implements AutoCloseable {

private ClusterRuntimeRegistry registry;
private PluginsRegistry pluginsRegistry;
private DeployContext deployContext;
@Builder.Default private DeployContext deployContext = DeployContext.NO_DEPLOY_CONTEXT;
@Getter private TopicConnectionsRuntimeRegistry topicConnectionsRuntimeRegistry;
private AssetManagerRegistry assetManagerRegistry;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1147,7 +1147,13 @@ private static void deployLocalApplicationAndAwaitReady(
final String tenantNamespace = TENANT_NAMESPACE_PREFIX + tenant;
final String podUids =
deployLocalApplication(
tenant, isUpdate, applicationId, appDirName, instanceFile, env);
tenant,
isUpdate,
applicationId,
appDirName,
instanceFile,
env,
forceRestart);

awaitApplicationReady(applicationId, expectedNumExecutors);
Awaitility.await()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
import ai.langstream.api.model.TopicDefinition;
import ai.langstream.api.runner.topics.TopicConnectionsRuntimeRegistry;
import ai.langstream.api.runtime.ClusterRuntimeRegistry;
import ai.langstream.api.runtime.DeployContext;
import ai.langstream.api.runtime.ExecutionPlan;
import ai.langstream.api.runtime.PluginsRegistry;
import ai.langstream.impl.deploy.ApplicationDeployer;
Expand Down Expand Up @@ -73,6 +74,7 @@ public void testMapPulsarTopics() throws Exception {
.registry(new ClusterRuntimeRegistry())
.pluginsRegistry(new PluginsRegistry())
.topicConnectionsRuntimeRegistry(new TopicConnectionsRuntimeRegistry())
.deployContext(DeployContext.NO_DEPLOY_CONTEXT)
.build()) {

Module module = applicationInstance.getModule("module-1");
Expand Down

0 comments on commit 5bc7f2f

Please sign in to comment.