PowerShell类型GLUE任务,升级使用 PowerShell7(pwsh命令)执行,提升性能、编码兼容性以及跨平台适配性;

(注意:对应执行器需要安装PowerShell 7.0以上版本,从而支持 pwsh 命令)
master
xuxueli 4 days ago
parent 7a5239f3b4
commit cf16aff2a9

@ -2856,8 +2856,10 @@ alter table xxl_job_log
- 10、【优化】调度中心UI交互优化任务及日志列表下拉框支持模糊搜索提升多任务情况下交互体验
### 7.46 版本 v3.4.2 Release Notes[ING]
- 1、【修复】调度日志列表日期处理逻辑修复兼容执行信息为空阻塞列表加载问题
- 2、【安全】任务RollingLog权限校验完善防止越权查看任务日志
- 1、【升级】PowerShell类型GLUE任务升级使用 PowerShell7pwsh命令执行提升性能、编码兼容性以及跨平台适配性
注意对应执行器需要安装PowerShell 7.0以上版本,从而支持 pwsh 命令)
- 2、【修复】调度日志列表日期处理逻辑修复兼容执行信息为空阻塞列表加载问题
- 3、【安全】任务RollingLog权限校验完善防止越权查看任务日志
### 7.47 版本 v3.5.0 Release Notes[ING]

@ -11,7 +11,7 @@ public enum GlueTypeEnum {
GLUE_PYTHON("GLUE(Python3)", true, "python3", ".py"),
GLUE_PYTHON2("GLUE(Python2)", true, "python", ".py"),
GLUE_NODEJS("GLUE(Nodejs)", true, "node", ".js"),
GLUE_POWERSHELL("GLUE(PowerShell)", true, "powershell", ".ps1"),
GLUE_POWERSHELL("GLUE(PowerShell)", true, "pwsh", ".ps1"),
GLUE_PHP("GLUE(PHP)", true, "php", ".php");
private String desc;

@ -30,19 +30,6 @@ public class ScriptUtil {
public static void markScriptFile(String scriptFileName, String scriptContent) throws IOException {
// make file: filePath/gluesource/666-123456789.py
FileTool.writeString(scriptFileName, scriptContent);
/*FileOutputStream fileOutputStream = null;
try {
fileOutputStream = new FileOutputStream(scriptFileName);
fileOutputStream.write(scriptContent.getBytes("UTF-8"));
fileOutputStream.close();
} catch (Exception e) {
throw e;
}finally{
if(fileOutputStream != null){
fileOutputStream.close();
}
}*/
}
/**

Loading…
Cancel
Save