Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@

public class TaskKillException extends RuntimeException {

public TaskKillException(String message) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

super(message);
}

public TaskKillException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@

public class TaskPauseException extends RuntimeException {

public TaskPauseException(String message) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove this.

super(message);
}

public TaskPauseException(String message, Throwable cause) {
super(message, cause);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,6 @@

public class TaskReassignMasterHostException extends RuntimeException {

public TaskReassignMasterHostException(String message) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok

super(message);
}

public TaskReassignMasterHostException(String message, Throwable cause) {
super(message, cause);
}
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.apache.dolphinscheduler.common.thread.ThreadUtils;
import org.apache.dolphinscheduler.server.master.engine.system.event.AbstractSystemEvent;
import org.apache.dolphinscheduler.server.master.engine.system.event.ISystemEventHandler;
import org.apache.dolphinscheduler.server.master.failover.FailoverCoordinator;

import org.apache.commons.collections4.CollectionUtils;
import org.apache.commons.lang3.time.StopWatch;
Expand All @@ -43,9 +42,6 @@ public class SystemEventBusFireWorker extends BaseDaemonThread implements AutoCl
@Autowired
private SystemEventBus systemEventBus;

@Autowired
private FailoverCoordinator failoverCoordinator;

@Autowired
private List<ISystemEventHandler> systemEventHandlers;

Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -20,19 +20,13 @@
import org.apache.dolphinscheduler.dao.entity.TaskDefinition;
import org.apache.dolphinscheduler.dao.entity.TaskInstance;
import org.apache.dolphinscheduler.dao.entity.WorkflowInstance;
import org.apache.dolphinscheduler.dao.mapper.EnvironmentMapper;
import org.apache.dolphinscheduler.dao.utils.EnvironmentUtils;
import org.apache.dolphinscheduler.dao.utils.WorkerGroupUtils;

import org.springframework.beans.factory.annotation.Autowired;

public abstract class AbstractTaskInstanceFactory<BUILDER extends ITaskInstanceFactory.ITaskInstanceBuilder>
implements
ITaskInstanceFactory<BUILDER> {

@Autowired
protected EnvironmentMapper environmentMapper;

protected TaskInstance cloneTaskInstance(TaskInstance originTaskInstance) {
final TaskInstance result = new TaskInstance();
result.setId(originTaskInstance.getId());
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
import org.apache.dolphinscheduler.plugin.task.api.utils.VarPoolUtils;
import org.apache.dolphinscheduler.server.master.engine.AbstractLifecycleEvent;
import org.apache.dolphinscheduler.server.master.engine.ITaskGroupCoordinator;
import org.apache.dolphinscheduler.server.master.engine.IWorkflowRepository;
import org.apache.dolphinscheduler.server.master.engine.graph.IWorkflowExecutionGraph;
import org.apache.dolphinscheduler.server.master.engine.task.client.ITaskExecutorClient;
import org.apache.dolphinscheduler.server.master.engine.task.lifecycle.event.TaskDispatchLifecycleEvent;
Expand Down Expand Up @@ -66,9 +65,6 @@ public abstract class AbstractTaskStateAction implements ITaskStateAction {
@Autowired
protected TaskInstanceDao taskInstanceDao;

@Autowired
protected IWorkflowRepository workflowRepository;

@Autowired
protected ITaskExecutorClient taskExecutorClient;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,13 @@
package org.apache.dolphinscheduler.server.master.engine.workflow.lifecycle.handler;

import org.apache.dolphinscheduler.server.master.engine.ILifecycleEventType;
import org.apache.dolphinscheduler.server.master.engine.IWorkflowRepository;
import org.apache.dolphinscheduler.server.master.engine.WorkflowEventBusCoordinator;
import org.apache.dolphinscheduler.server.master.engine.workflow.lifecycle.WorkflowLifecycleEventType;
import org.apache.dolphinscheduler.server.master.engine.workflow.lifecycle.event.WorkflowFinalizeLifecycleEvent;
import org.apache.dolphinscheduler.server.master.engine.workflow.runnable.IWorkflowExecutionRunnable;
import org.apache.dolphinscheduler.server.master.engine.workflow.statemachine.IWorkflowStateAction;

import lombok.extern.slf4j.Slf4j;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Lazy;
import org.springframework.stereotype.Component;

/**
Expand All @@ -40,13 +36,6 @@ public class WorkflowFinalizeLifecycleEventHandler
extends
AbstractWorkflowLifecycleEventHandler<WorkflowFinalizeLifecycleEvent> {

@Lazy
@Autowired
private WorkflowEventBusCoordinator workflowEventBusCoordinator;

@Autowired
private IWorkflowRepository workflowRepository;

@Override
public void handle(final IWorkflowStateAction workflowStateAction,
final IWorkflowExecutionRunnable workflowExecutionRunnable,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import org.apache.dolphinscheduler.common.utils.DateUtils;
import org.apache.dolphinscheduler.common.utils.JSONUtils;
import org.apache.dolphinscheduler.dao.entity.WorkflowInstance;
import org.apache.dolphinscheduler.dao.repository.CommandDao;
import org.apache.dolphinscheduler.extract.master.command.BackfillWorkflowCommandParam;
import org.apache.dolphinscheduler.extract.master.command.ICommandParam;
import org.apache.dolphinscheduler.extract.master.transportor.workflow.WorkflowBackfillTriggerRequest;
Expand All @@ -48,9 +47,6 @@ public class WorkflowSuccessLifecycleListener implements IWorkflowLifecycleListe
@Autowired
private WorkflowBackfillTrigger workflowBackfillTrigger;

@Autowired
private CommandDao commandDao;

public void notifyWorkflowLifecycleEvent(final IWorkflowExecutionRunnable workflowExecutionRunnable,
final AbstractWorkflowLifecycleLifecycleEvent lifecycleEvent) {
final WorkflowInstance workflowInstance = workflowExecutionRunnable.getWorkflowInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,5 @@ default IWorkflowExecutionGraph getWorkflowExecutionGraph() {
*/
List<IWorkflowLifecycleListener> getWorkflowLifecycleListeners();

/**
* Register a WorkflowInstanceLifecycleListener to the Workflow instance.
*/
void registerWorkflowInstanceLifecycleListener(IWorkflowLifecycleListener listener);

IWorkflowFailureStrategy getWorkflowFailureStrategy();
}
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,6 @@

package org.apache.dolphinscheduler.server.master.engine.workflow.runnable;

import static com.google.common.base.Preconditions.checkArgument;

import org.apache.dolphinscheduler.dao.entity.WorkflowInstance;
import org.apache.dolphinscheduler.server.master.engine.workflow.lifecycle.event.WorkflowPauseLifecycleEvent;
import org.apache.dolphinscheduler.server.master.engine.workflow.lifecycle.event.WorkflowStopLifecycleEvent;
Expand Down Expand Up @@ -68,12 +66,6 @@ public List<IWorkflowLifecycleListener> getWorkflowLifecycleListeners() {
return workflowInstanceLifecycleListeners;
}

@Override
public void registerWorkflowInstanceLifecycleListener(IWorkflowLifecycleListener listener) {
checkArgument(listener != null, "listener cannot be null");
workflowInstanceLifecycleListeners.add(listener);
}

@Override
public String toString() {
final WorkflowInstance workflowInstance = workflowExecuteContext.getWorkflowInstance();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import org.apache.dolphinscheduler.common.enums.CommandType;
import org.apache.dolphinscheduler.dao.entity.Command;
import org.apache.dolphinscheduler.dao.repository.CommandDao;
import org.apache.dolphinscheduler.dao.repository.WorkflowInstanceDao;
import org.apache.dolphinscheduler.server.master.engine.command.ICommandHandler;
import org.apache.dolphinscheduler.server.master.engine.exceptions.CommandDuplicateHandleException;

Expand All @@ -39,9 +38,6 @@ public class WorkflowExecutionRunnableFactory {
@Autowired
private List<ICommandHandler> commandHandlers;

@Autowired
private WorkflowInstanceDao workflowInstanceDao;

@Autowired
private CommandDao commandDao;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,4 @@ public LogicTaskInitializeException(String message) {
super(message);
}

public LogicTaskInitializeException(String message, Throwable cause) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove this.

super(message, cause);
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,8 @@

public class MasterTaskExecuteException extends MasterException {

public MasterTaskExecuteException(String message) {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove this.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Don't remove this.

ok

super(message);
}

public MasterTaskExecuteException(String message, Throwable cause) {
super(message, cause);
}

}

This file was deleted.

This file was deleted.

This file was deleted.

Loading
Loading