TaskService

@Service
class TaskService(config: TaskControllerConfig, transactionTemplate: TransactionTemplate, taskRepo: TaskRepo, taskTypeRepo: TaskTypeRepo, pipelineTaskTypeRepo: PipelineTaskTypeRepo, errorsRepo: ErrorRepo, var executorRepo: ExecutorRepo, var executorTypeRepo: TaskExecutorTypeRepo, authorizer: Authorizer, @Lazy tasksActorApi: TasksActorApi, executionEngine: ExecutionEngine? = null) : TaskServiceBase, TaskServiceApi

Constructors

Link copied to clipboard
constructor(config: TaskControllerConfig, transactionTemplate: TransactionTemplate, taskRepo: TaskRepo, taskTypeRepo: TaskTypeRepo, pipelineTaskTypeRepo: PipelineTaskTypeRepo, errorsRepo: ErrorRepo, executorRepo: ExecutorRepo, executorTypeRepo: TaskExecutorTypeRepo, authorizer: Authorizer, @Lazy tasksActorApi: TasksActorApi, executionEngine: ExecutionEngine? = null)

Properties

Link copied to clipboard
open override var executorRepo: ExecutorRepo
Link copied to clipboard

Functions

Link copied to clipboard
fun cancelTask(authData: AuthData?, taskId: TaskId, tenantId: Int): TaskEntity
Link copied to clipboard
open override fun createTask(authData: AuthData?, request: TaskRequest): Task
open override fun createTask(authData: AuthData?, request: TaskRequest, pipelineTaskId: TaskId?): Task
Link copied to clipboard
fun endExternalTask(authData: AuthData, taskId: Long, request: EndTaskRequest): TaskEntity
Link copied to clipboard
fun getPipelineTasksResults(authData: AuthData?, pipelineTaskId: TaskId, taskTypeHids: List<String>?, pageable: Pageable): Page<PipelineTaskResult>
Link copied to clipboard
fun getTaskEntity(authData: AuthData?, taskId: Long, tenantId: Int): TaskEntity
Link copied to clipboard
fun getTaskEntityByHid(authData: AuthData?, taskHid: String, tenantId: Int): TaskEntity?
Link copied to clipboard
fun getTaskInput(authData: AuthData?, taskId: Long, tenantId: Int): TaskData?
Link copied to clipboard
fun getTaskProgress(authData: AuthData?, taskId: Long, tenantId: Int): TaskProgress?
Link copied to clipboard
fun getTaskResult(authData: AuthData, taskId: Long, tenantId: Int): TaskResult
Link copied to clipboard
fun getTasks(authData: AuthData?, pageable: Pageable, tenantId: Int, runningStatuses: List<Task.RunningStatus> = emptyList(), taskTypeHids: List<String> = emptyList(), taskTypeCategory: TaskTypeCategory? = null, extId: String? = null, pipelineTaskId: TaskId? = null): Page<TaskWithProgress>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun lookupExecutor(executorHid: String, executorTypeHid: String): Executor
Link copied to clipboard
fun rerunTask(authData: AuthData?, taskId: TaskId, tenantId: Int): TaskEntity
Link copied to clipboard
fun startTask(authData: AuthData?, taskId: TaskId, tenantId: Int): TaskEntity
Link copied to clipboard
fun takeTaskForExecution(httpHeaders: HttpHeaders, executorTypeHid: String, executorHid: String): TaskEntity?
Link copied to clipboard
fun takeTaskForExecutionWaiting(httpHeaders: HttpHeaders, executorTypeHid: String, executorHid: String): TaskTakeForExecutionResult