diff --git a/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js b/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js index b479e972..f70e5a12 100644 --- a/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js +++ b/xxl-job-admin/src/main/resources/static/js/jobinfo.index.1.js @@ -519,6 +519,8 @@ $(function() { $("#addModal .form textarea[name='glueSource']").val( $("#addModal .form .glueSource_shell").val() ); } else if ('GLUE_PYTHON'==glueType){ $("#addModal .form textarea[name='glueSource']").val( $("#addModal .form .glueSource_python").val() ); + } else if ('GLUE_PYTHON3'==glueType){ + $("#addModal .form textarea[name='glueSource']").val( $("#addModal .form .glueSource_python3").val() ); } else if ('GLUE_PHP'==glueType){ $("#addModal .form textarea[name='glueSource']").val( $("#addModal .form .glueSource_php").val() ); } else if ('GLUE_NODEJS'==glueType){ diff --git a/xxl-job-admin/src/main/resources/templates/jobcode/jobcode.index.ftl b/xxl-job-admin/src/main/resources/templates/jobcode/jobcode.index.ftl index a386b288..7b722430 100644 --- a/xxl-job-admin/src/main/resources/templates/jobcode/jobcode.index.ftl +++ b/xxl-job-admin/src/main/resources/templates/jobcode/jobcode.index.ftl @@ -130,7 +130,7 @@ <#elseif jobInfo.glueType == "GLUE_SHELL" > <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/shell/shell.js" /> <#assign glueTypeIdeMode = "text/x-sh" /> - <#elseif jobInfo.glueType == "GLUE_PYTHON" > + <#elseif jobInfo.glueType == "GLUE_PYTHON" || jobInfo.glueType == "GLUE_PYTHON3"> <#assign glueTypeModeSrc = "${request.contextPath}/static/plugins/codemirror/mode/python/python.js" /> <#assign glueTypeIdeMode = "text/x-python" /> <#elseif jobInfo.glueType == "GLUE_PHP" > diff --git a/xxl-job-admin/src/main/resources/templates/jobinfo/jobinfo.index.ftl b/xxl-job-admin/src/main/resources/templates/jobinfo/jobinfo.index.ftl index 3a5d7d8a..aa39a3e2 100644 --- a/xxl-job-admin/src/main/resources/templates/jobinfo/jobinfo.index.ftl +++ b/xxl-job-admin/src/main/resources/templates/jobinfo/jobinfo.index.ftl @@ -283,6 +283,30 @@ import sys print "xxl-job: hello python" +print "${I18n.jobinfo_script_location}:", sys.argv[0] +print "${I18n.jobinfo_field_executorparam}:", sys.argv[1] +print "${I18n.jobinfo_shard_index}:", sys.argv[2] +print "${I18n.jobinfo_shard_total}:", sys.argv[3] +<#--for i in range(1, len(sys.argv)): + time.sleep(1) + print "参数", i, sys.argv[i]--> + +print "Good bye!" +exit(0) +<#-- +import logging +logging.basicConfig(level=logging.DEBUG) +logging.info("脚本文件:" + sys.argv[0]) +--> + +