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

调度中心调度任务时404,但在执行器端弄个post /run 接口可以正常运行 #3595

Open
WKING66 opened this issue Dec 19, 2024 · 0 comments

Comments

@WKING66
Copy link

WKING66 commented Dec 19, 2024

Please answer some questions before submitting your issue. Thanks!

Which version of XXL-JOB do you using?

2.3.0

Expected behavior

正常执行任务

Actual behavior

image

image

Steps to reproduce the behavior

调度中心部署在远程主机docker上,执行器运行在windows本地,本地开启内网穿透手动录入执行器,自动注册执行时会xxl-rpc remoting error(connect timed out), for url : http://10.248.179.225:9999/run

执行任务时失败 日志显示错误为:xxl-rpc remoting fail, StatusCode(404) invalid. for url :xxl-rpc remoting error(Read timed out), for url : http://47824992.r8.cpolar.top/run

但我copy com.xxl.job.core.biz.impl.ExecutorBizImpl中 的run 方法 弄了个接口后任务可以正常执行

image

请求地址为本地回环
image-20241219104343636

若接口直接返回ReturnT.SUCCESS ,查看日志时会显示任务执行成功,实则没有执行。若不弄出这个/run接口,任务执行就会一直404

Other information

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