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

[Feature] 希望调用trigger api时,返回体中返回logid,便于中台项目跟踪日志 #681

Open
staochina opened this issue Nov 2, 2024 · 0 comments
Labels
new feature new feature

Comments

@staochina
Copy link

staochina commented Nov 2, 2024

  是否可以在调用 /api/job/trigger api时,返回体返回logid ,这样的话中台项目想要获取当前的执行日志就很方便了。
  因并发执行同一个任务(请求替换参数值不一样)时,不知道对应的日志id是哪个,导致开发老是被拉上线给运维人员查日志,很浪费开发的时间,我们在项目上的做法是,发送jobid到dataxweb(被我们改写了,增加了几个接口),dataxweb添加一个新接口,该接口根据jobid生成一份新的job记录和id(就是把数据复制一份,替换id再插入数据库)并且替换变量和执行它,返回中台新jobid。中台拿着这个jobid去拉取所有日志(其实只会有1条)并录入我们的系统,供运维查看。这会产生新问题--生成的job太多了。
   很操蛋的玩法,但我们实在没有其他办法了,从年初用到现在。

未命名

@staochina staochina added the new feature new feature label Nov 2, 2024
@staochina staochina changed the title [Feature] [Feature] 希望调用trigger api时,返回logid,便于中台项目跟踪日志 Nov 2, 2024
@staochina staochina changed the title [Feature] 希望调用trigger api时,返回logid,便于中台项目跟踪日志 [Feature] 希望调用trigger api时,返回体中返回logid,便于中台项目跟踪日志 Nov 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new feature new feature
Projects
None yet
Development

No branches or pull requests

1 participant