MINOR - None schedules still need Ingestion Pipelines (#18425)

This commit is contained in:
Pere Miquel Brull 2024-10-28 12:44:21 +01:00
parent 3f1d8c7cd5
commit dbfe79feef

View File

@ -14,7 +14,6 @@ import org.openmetadata.schema.api.services.ingestionPipelines.CreateIngestionPi
import org.openmetadata.schema.entity.app.App;
import org.openmetadata.schema.entity.app.AppRunRecord;
import org.openmetadata.schema.entity.app.AppType;
import org.openmetadata.schema.entity.app.ScheduleTimeline;
import org.openmetadata.schema.entity.app.ScheduleType;
import org.openmetadata.schema.entity.app.ScheduledExecutionContext;
import org.openmetadata.schema.entity.applications.configuration.ApplicationConfig;
@ -65,9 +64,7 @@ public class AbstractNativeApplication implements NativeApplication {
@Override
public void install() {
// If the app does not have any Schedule Return without scheduling
if (Boolean.TRUE.equals(app.getDeleted())
|| (app.getAppSchedule() != null
&& app.getAppSchedule().getScheduleTimeline().equals(ScheduleTimeline.NONE))) {
if (Boolean.TRUE.equals(app.getDeleted()) || (app.getAppSchedule() == null)) {
return;
}
if (app.getAppType().equals(AppType.Internal)