Skip to content

Commit

Permalink
Fix sonar issue
Browse files Browse the repository at this point in the history
  • Loading branch information
terrymanu committed Nov 25, 2023
1 parent 01329b1 commit 6e25149
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,6 @@ protected AbstractSimplePipelineJob(final String jobId) {

@Override
public void execute(final ShardingContext shardingContext) {
PipelineJobManager jobManager = new PipelineJobManager(getJobAPI());
String jobId = shardingContext.getJobName();
int shardingItem = shardingContext.getShardingItem();
log.info("Execute job {}-{}", jobId, shardingItem);
Expand All @@ -62,7 +61,7 @@ public void execute(final ShardingContext shardingContext) {
// CHECKSTYLE:OFF
} catch (final RuntimeException ex) {
// CHECKSTYLE:ON
processFailed(jobManager, jobId, shardingItem, ex);
processFailed(new PipelineJobManager(getJobAPI()), jobId, shardingItem, ex);
throw ex;
}
}
Expand Down

0 comments on commit 6e25149

Please sign in to comment.