Browse Source

[Improvement-8758] [worker] Delete unused object preTaskCache (#8795)

3.0.0/version-upgrade
guoshupei 3 years ago committed by GitHub
parent
commit
6a5b3bb8f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      dolphinscheduler-worker/src/main/java/org/apache/dolphinscheduler/server/worker/processor/TaskExecuteProcessor.java

2
dolphinscheduler-worker/src/main/java/org/apache/dolphinscheduler/server/worker/processor/TaskExecuteProcessor.java

@ -96,8 +96,6 @@ public class TaskExecuteProcessor implements NettyRequestProcessor {
* @param taskExecutionContext task * @param taskExecutionContext task
*/ */
private void setTaskCache(TaskExecutionContext taskExecutionContext) { private void setTaskCache(TaskExecutionContext taskExecutionContext) {
TaskExecutionContext preTaskCache = new TaskExecutionContext();
preTaskCache.setTaskInstanceId(taskExecutionContext.getTaskInstanceId());
TaskRequest taskRequest = JSONUtils.parseObject(JSONUtils.toJsonString(taskExecutionContext), TaskRequest.class); TaskRequest taskRequest = JSONUtils.parseObject(JSONUtils.toJsonString(taskExecutionContext), TaskRequest.class);
TaskExecutionContextCacheManager.cacheTaskExecutionContext(taskRequest); TaskExecutionContextCacheManager.cacheTaskExecutionContext(taskRequest);
} }

Loading…
Cancel
Save