Skip to content

Commit

Permalink
add java jvm memory spec on crontab trigger type
Browse files Browse the repository at this point in the history
  • Loading branch information
baisui1981 committed Apr 14, 2024
1 parent 96f2d37 commit 9f4b6e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tis-console.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ spec:
mountPath: /opt/app/tis-uber/tis-assemble/conf/tis-web-config/
- name: tis-console-pvc
mountPath: "/opt/data"
image: registry.cn-hangzhou.aliyuncs.com/tis/tis-console:4.0.0.21
image: registry.cn-hangzhou.aliyuncs.com/tis/tis-console:4.0.0.29
# command: [ "/bin/sh", "-c", "sleep 1000000" ]
ports:
- name: tis-8080
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,21 @@


import com.alibaba.fastjson.JSONObject;
import com.qlangtech.tis.job.common.JobParams;
import com.qlangtech.tis.plugin.PluginAndCfgsSnapshotUtils;

import java.util.Objects;
import java.util.concurrent.atomic.AtomicReference;

/**
* @author 百岁 ([email protected])
* @date 2023/12/11
*/
public class PowerjobTriggerBuildResult extends TriggerBuildResult {
private String pluginCfgsMetas;
/**
* 用于Crontab任务传递的参数
*/
private String javaMemorySpec;

public PowerjobTriggerBuildResult() {
}
Expand All @@ -40,9 +44,18 @@ public PowerjobTriggerBuildResult(boolean success, JSONObject instanceParams) {
// JSONObject instanceParams = Objects.requireNonNull(instanceParamsRef).get();
pluginCfgsMetas = Objects.requireNonNull(instanceParams, "instanceParams can not be null") //
.getString(PluginAndCfgsSnapshotUtils.KEY_PLUGIN_CFGS_METAS);
this.javaMemorySpec = instanceParams.getString(JobParams.KEY_JAVA_MEMORY_SPEC);

}

public String getJavaMemorySpec() {
return javaMemorySpec;
}

public void setJavaMemorySpec(String javaMemorySpec) {
this.javaMemorySpec = javaMemorySpec;
}

public String getPluginCfgsMetas() {
return pluginCfgsMetas;
}
Expand Down

0 comments on commit 9f4b6e3

Please sign in to comment.