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

ScheduledDtpExecutor无法支持taskWrappers #514

Open
HaoClassmate opened this issue Dec 12, 2024 · 5 comments
Open

ScheduledDtpExecutor无法支持taskWrappers #514

HaoClassmate opened this issue Dec 12, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@HaoClassmate
Copy link

首先感谢您使用 DynamicTp,如果使用过程中有任何问题,请按照下述模板反馈问题,请使用 Markdown 语法

版本信息

  • Jdk版本���21
  • SpringBoot版本:2.7.11
  • DynamicTp版本:1.1.9.1
  • 配置中心类型:nacos
  • 配置中心版本:

问题描述

文字描述、截图、粘代码方式
image

  • 配置文件:
  • 引入的依赖:
  • 代码使用步骤:
  • 报错信息:
  • 猜测可能原因:调用scheduledDtpExecutor.scheduleWithFixedDelays时候可以看到scheduledDtpExecutor对象有taskWrappers,但是delegate中taskWrappers为空,实际调用delegate的scheduleWithFixedDelay所以导致taskWrappers不生效

复现步骤

@HaoClassmate HaoClassmate added the bug Something isn't working label Dec 12, 2024
@EachannChan
Copy link
Contributor

有复现步骤吗,或者是报错的堆栈信息

@HaoClassmate
Copy link
Author

服务启动的话是没有报错的,只是scheduledDtpExecutor 的taskWrappers不生效。 但是DtpExecutor是正常生效的。
重现步骤就是调用cheduledDtpExecutor.scheduleWithFixedDelays,没其他操作了。

@EachannChan
Copy link
Contributor

你确认下是否为使用方式的问题,代码应该是没有问题的

@KamToHung
Copy link
Collaborator

确实有问题,内部代理的delegate没有设置Wrappers

@KamToHung KamToHung self-assigned this Dec 15, 2024
@yanhom1314
Copy link
Collaborator

确实有问题,内部代理的delegate没有设置Wrappers

这个 delegate 感觉可以拿掉,代理的意义不大

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
4 participants