Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

使用xxl-job-admin2.3.0无法运行python脚本 #12

Open
471172468 opened this issue Sep 30, 2021 · 0 comments
Open

使用xxl-job-admin2.3.0无法运行python脚本 #12

471172468 opened this issue Sep 30, 2021 · 0 comments

Comments

@471172468
Copy link

在运行python脚本时提示:
exit status 2: python: can't open file '/data/applogs/xxl-job/jobhandler/gluesource/3_1632902167000.py 0 1 >>/data/applogs/xxl-job/jobhandler/2021-09-30/12.log': [Errno 2] No such file or directory

在尝试修改 handler.execute_handler.go:149 行为 buffer.WriteString(" >> ")
和修改 handler.execute_handler.go:157 行为 cmd := exec.CommandContext(cancelCtx, scriptCmd[glueType], strings.Split(c, " ")...)
后可正常运行

猜测原因可能是因为 CommandContext 默认将 c := buffer.String() c 中内容识别为整体导致的。

inhere added a commit to goft-cloud/go-xxl-job-client that referenced this issue Dec 31, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant