Skip to content

修复更新数据源之后,可能另外一个机器上部署的服务没更新 #2355

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

Closed
wants to merge 1 commit into from

Conversation

KANLON
Copy link
Contributor

@KANLON KANLON commented Dec 23, 2024

因为datart可能多机器部署,目前接口更新数据源的链接信息是只更新有调用更新数据源接口的那个服务的,在多个服务多机器部署的情况下,可能另外一个服务就没更新了,

所以这里我每次执行sql之前先简单对比目前缓存了的数据源和数据库中的数据源信息是否一样,不一样则更新,这里先处理jdbc的数据源了,因为大部分报表都是jdbc的数据源

put /sources

修复更新数据源之后,可能另外一个机器上部署的服务没更新

这个pr 关闭,发现有这个代码可以优化一下,我重新提交一个pr

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

Successfully merging this pull request may close these issues.

1 participant