Skip to content

Commit

Permalink
Split PipelineJobAPI to PipelineJobOption and PipelineJobAPI
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 25, 2023
1 parent 12d885e commit b181cba
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ public void drop(final String jobId) {
* @return jobs info
*/
public List<PipelineJobInfo> getJobInfos(final PipelineContextKey contextKey) {
if (jobOption instanceof TransmissionJobAPI) {
if (jobOption instanceof TransmissionJobOption) {
return PipelineAPIFactory.getJobStatisticsAPI(contextKey).getAllJobsBriefInfo().stream()
.filter(each -> !each.getJobName().startsWith("_") && jobOption.getType().equals(PipelineJobIdUtils.parseJobType(each.getJobName()).getType()))
.map(each -> ((TransmissionJobOption) jobOption).getJobInfo(each.getJobName())).collect(Collectors.toList());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,7 @@ public final class CommitMigrationUpdater implements RALUpdater<CommitMigrationS

@Override
public void executeUpdate(final String databaseName, final CommitMigrationStatement sqlStatement) throws SQLException {
TransmissionJobAPI jobAPI = TypedSPILoader.getService(TransmissionJobAPI.class, "MIGRATION");
jobAPI.commit(sqlStatement.getJobId());
TypedSPILoader.getService(TransmissionJobAPI.class, "MIGRATION").commit(sqlStatement.getJobId());
}

@Override
Expand Down

0 comments on commit b181cba

Please sign in to comment.