-
Notifications
You must be signed in to change notification settings - Fork 583
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added query for composed-task-runner status. (#5792)
* Added query for composed-task-runner status. #Fixes 5782 * Added index on task_execution parent_execution_id. Added check for taskExecutionStatus on task execution list. * Fix ctr status query. * Reduce minimum improvement to 2 times.
- Loading branch information
Showing
29 changed files
with
241 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
45 changes: 45 additions & 0 deletions
45
...gframework/cloud/dataflow/server/db/migration/AbstractCreateTaskParentIndexMigration.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
/* | ||
* Copyright 2024 the original author or authors. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* https://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
package org.springframework.cloud.dataflow.server.db.migration; | ||
|
||
import java.util.Arrays; | ||
import java.util.List; | ||
|
||
import org.springframework.cloud.dataflow.common.flyway.AbstractMigration; | ||
import org.springframework.cloud.dataflow.common.flyway.SqlCommand; | ||
|
||
/** | ||
* Provide indexes to improve performance of finding child tasks. | ||
* @author Corneil du Plessis | ||
*/ | ||
public abstract class AbstractCreateTaskParentIndexMigration extends AbstractMigration { | ||
protected static final String CREATE_TASK_PARENT_INDEX = | ||
"create index TASK_EXECUTION_PARENT_IX on TASK_EXECUTION(PARENT_EXECUTION_ID)"; | ||
protected static final String CREATE_BOOT3_TASK_PARENT_INDEX = | ||
"create index BOOT3_TASK_EXECUTION_PARENT_IX on BOOT3_TASK_EXECUTION(PARENT_EXECUTION_ID)"; | ||
|
||
public AbstractCreateTaskParentIndexMigration() { | ||
super(null); | ||
} | ||
|
||
@Override | ||
public List<SqlCommand> getCommands() { | ||
return Arrays.asList( | ||
SqlCommand.from(CREATE_TASK_PARENT_INDEX), | ||
SqlCommand.from(CREATE_BOOT3_TASK_PARENT_INDEX) | ||
); | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
...rg/springframework/cloud/dataflow/server/db/migration/db2/V11__CreateTaskParentIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.springframework.cloud.dataflow.server.db.migration.db2; | ||
|
||
import org.springframework.cloud.dataflow.server.db.migration.AbstractCreateTaskParentIndexMigration; | ||
|
||
public class V11__CreateTaskParentIndex extends AbstractCreateTaskParentIndexMigration { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...pringframework/cloud/dataflow/server/db/migration/mariadb/V12__CreateTaskParentIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.springframework.cloud.dataflow.server.db.migration.mariadb; | ||
|
||
import org.springframework.cloud.dataflow.server.db.migration.AbstractCreateTaskParentIndexMigration; | ||
|
||
public class V12__CreateTaskParentIndex extends AbstractCreateTaskParentIndexMigration { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
.../springframework/cloud/dataflow/server/db/migration/mysql/V12__CreateTaskParentIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.springframework.cloud.dataflow.server.db.migration.mysql; | ||
|
||
import org.springframework.cloud.dataflow.server.db.migration.AbstractCreateTaskParentIndexMigration; | ||
|
||
public class V12__CreateTaskParentIndex extends AbstractCreateTaskParentIndexMigration { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...springframework/cloud/dataflow/server/db/migration/oracle/V12__CreateTaskParentIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.springframework.cloud.dataflow.server.db.migration.oracle; | ||
|
||
import org.springframework.cloud.dataflow.server.db.migration.AbstractCreateTaskParentIndexMigration; | ||
|
||
public class V12__CreateTaskParentIndex extends AbstractCreateTaskParentIndexMigration { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...ngframework/cloud/dataflow/server/db/migration/postgresql/V13__CreateTaskParentIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.springframework.cloud.dataflow.server.db.migration.postgresql; | ||
|
||
import org.springframework.cloud.dataflow.server.db.migration.AbstractCreateTaskParentIndexMigration; | ||
|
||
public class V13__CreateTaskParentIndex extends AbstractCreateTaskParentIndexMigration { | ||
|
||
} |
7 changes: 7 additions & 0 deletions
7
...ingframework/cloud/dataflow/server/db/migration/sqlserver/V11__CreateTaskParentIndex.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
package org.springframework.cloud.dataflow.server.db.migration.sqlserver; | ||
|
||
import org.springframework.cloud.dataflow.server.db.migration.AbstractCreateTaskParentIndexMigration; | ||
|
||
public class V11__CreateTaskParentIndex extends AbstractCreateTaskParentIndexMigration { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.