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

fix: 终止脚本/文件任务无效 #2893

Closed
wangyu096 opened this issue Apr 12, 2024 · 1 comment
Closed

fix: 终止脚本/文件任务无效 #2893

wangyu096 opened this issue Apr 12, 2024 · 1 comment
Assignees
Labels
done 已上线到正式环境并验收通过 for test 可以在测试环境进行验收 kind/bug 程序故障Bug,漏洞

Comments

@wangyu096
Copy link
Collaborator

Version / Branch / tag

3.9.1。3.8.x版本没有这个问题。

出了什么问题?(What Happened?)

错误日志:

[2024-04-11 20:46:41.904] INFO [job-execute,487c45324cbe6a98b4d794f4afe70507,f1a118fb81c58d82] 7 --- [gse.task.service.job.execute-1] c.t.bk.job.common.gse.v2.GseV2ApiClient : [AbstractBkApiClient] Request|method=POST|uri=/api/v2/task/async_terminate_transfer_file|reqStr={"task_id":"F2:20240411122706:5B4EB81820784587123213B6C63290D7:1969","agents":[{"bk_agent_id":"02000000215254002631cd1712745661528q"},{"bk_agent_id":"010000525420f4b89f1685708368666u"}]}

[2024-04-11 20:46:41.928] WARN [job-execute,487c45324cbe6a98b4d794f4afe70507,f1a118fb81c58d82] 7 --- [gse.task.service.job.execute-1] c.t.b.j.common.util.http.BaseHttpHelper : Request fail, method: POST, url=/api/bk-gse/prod/api/v2/task/async_terminate_transfer_file, httpStatusCode=400, errorReason=Bad Request, body={"message":"not found the key 'agent_id_list'","code":-1,"data":{"version":"2.0.0","result":{"task_id":""}}},

@wangyu096 wangyu096 added kind/bug 程序故障Bug,漏洞 backlog 需求初始状态,等待产品进行评估 todo 进入开发排期的状态,纳入了最近的迭代 labels Apr 12, 2024
@wangyu096 wangyu096 self-assigned this Apr 12, 2024
@wangyu096
Copy link
Collaborator Author

错误分析

3.9.x 容器执行特性,切换到新的 GSE API (async_extensions_terminate_transfer_file/async_extensions_terminate_script_execute), agent 参数的格式变化了。
企业微信截图_f21d0643-53ee-478e-8ba5-2e045809dff8

image

代码中,虽然使用的新的请求参数,但是请求的 url 其实没有改过来,还是请求到老的 API 上面了。
企业微信截图_e7d4ccf0-d836-4fe3-9826-7f9c6506835a

wangyu096 added a commit to wangyu096/bk-job that referenced this issue Apr 12, 2024
wangyu096 added a commit to wangyu096/bk-job that referenced this issue Apr 12, 2024
wangyu096 added a commit that referenced this issue Apr 12, 2024
fix: 终止脚本/文件任务无效 #2893
@bkjob-bot bkjob-bot added for gray 可以在灰度环境/预发布环境验收 and removed backlog 需求初始状态,等待产品进行评估 todo 进入开发排期的状态,纳入了最近的迭代 labels Apr 19, 2024
@bkjob-bot bkjob-bot added done 已上线到正式环境并验收通过 and removed for gray 可以在灰度环境/预发布环境验收 labels May 13, 2024
wangyu096 added a commit to wangyu096/bk-job that referenced this issue May 14, 2024
@bkjob-bot bkjob-bot added the for test 可以在测试环境进行验收 label Jun 20, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
done 已上线到正式环境并验收通过 for test 可以在测试环境进行验收 kind/bug 程序故障Bug,漏洞
Projects
None yet
Development

No branches or pull requests

2 participants