8000 关于springBean类型的执行器在不抛异常的情况下支持返回失败。 · Issue #798 · PowerJob/PowerJob · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

关于springBean类型的执行器在不抛异常的情况下支持返回失败。 #798

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

Open
zhangZuCan opened this issue Dec 13, 2023 · 1 comment
Assignees
Labels
new feature new feature

Comments

@zhangZuCan
Copy link

在实际开发过程中,为了保证业务正常运行需要自己捕获处理异常,但是还是需要提醒我们的开发人员本次实例内部是存在异常的,但是powerJob对于springBean类型的执行器在不抛异常的情况下是不支持自己返回失败状态显示在页面上的。对于这个小功能有个粗略的小修改,望采纳。
在powerjob-worker某块下的 tech.powerjob.worker.processor.impl.process方法的26行下面加一段代码
if (result instanceof ProcessResult) {
return (ProcessResult) result;
}
Snipaste_2023-12-13_15-48-16

@zhangZuCan zhangZuCan added the new feature new feature label Dec 13, 2023
@KFCFans
Copy link
Member
KFCFans commented Mar 17, 2024

不好意思现在才看到。非常好的改动呀,可以直接提 pr。
or 下个版本我也会加进去。

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

2 participants
0