You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by "fuweng11 (via GitHub)" <gi...@apache.org> on 2024/03/21 12:01:45 UTC
Re: [PR] [INLONG-9862][Manager] Support submit flink job for offline sync [inlong]
fuweng11 commented on code in PR #9865:
URL: https://github.com/apache/inlong/pull/9865#discussion_r1533764631
##########
inlong-manager/manager-plugins/base/src/main/java/org/apache/inlong/manager/plugin/listener/StartupSortListener.java:
##########
@@ -98,6 +99,14 @@ public ListenerResult listen(WorkflowContext context) throws Exception {
}
for (InlongStreamInfo streamInfo : streamInfos) {
+ boolean isRealTimeSync = InlongConstants.DATASYNC_REALTIME_MODE
+ .equals(groupResourceForm.getGroupInfo().getInlongGroupMode());
+ // do not submit flink job if the group mode is offline and the stream is not config successfully
+ if (isRealTimeSync && !StreamStatus.CONFIG_SUCCESSFUL.getCode().equals(streamInfo.getStatus())) {
Review Comment:
`streamInfo.getStatus()` is always `StreamStatus.CONFIG_ING`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: commits-unsubscribe@inlong.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org