committed by
Michael Minella
parent
91aaf0022c
commit
acaaad89f3
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016 the original author or authors.
|
||||
* Copyright 2016-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -37,7 +37,13 @@ public class TaskProperties {
|
||||
/**
|
||||
* An id that will be used by the task when updating the task execution.
|
||||
*/
|
||||
private Integer executionid;
|
||||
private Long executionid;
|
||||
|
||||
/**
|
||||
* The id of the parent task execution id that launched this task execution.
|
||||
* Defaults to null if task execution had no parent.
|
||||
*/
|
||||
private Long parentExecutionId;
|
||||
|
||||
/**
|
||||
* The prefix to append to the table names created by Spring Cloud Task.
|
||||
@@ -58,11 +64,11 @@ public class TaskProperties {
|
||||
this.externalExecutionId = externalExecutionId;
|
||||
}
|
||||
|
||||
public Integer getExecutionid() {
|
||||
public Long getExecutionid() {
|
||||
return executionid;
|
||||
}
|
||||
|
||||
public void setExecutionid(Integer executionid) {
|
||||
public void setExecutionid(Long executionid) {
|
||||
this.executionid = executionid;
|
||||
}
|
||||
|
||||
@@ -81,4 +87,12 @@ public class TaskProperties {
|
||||
public void setTablePrefix(String tablePrefix) {
|
||||
this.tablePrefix = tablePrefix;
|
||||
}
|
||||
|
||||
public Long getParentExecutionId() {
|
||||
return parentExecutionId;
|
||||
}
|
||||
|
||||
public void setParentExecutionId(Long parentExecutionId) {
|
||||
this.parentExecutionId = parentExecutionId;
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2016 the original author or authors.
|
||||
* Copyright 2016-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -201,7 +201,9 @@ public class TaskLifecycleListener implements ApplicationListener<ApplicationEve
|
||||
Assert.isNull(taskExecution.getEndTime(), String.format(
|
||||
"Invalid TaskExecution, ID %s task is already complete", taskProperties.getExecutionid()));
|
||||
this.taskExecution = this.taskRepository.startTaskExecution(taskProperties.getExecutionid(),
|
||||
this.taskNameResolver.getTaskName(), new Date(), args, taskProperties.getExternalExecutionId());
|
||||
this.taskNameResolver.getTaskName(), new Date(), args,
|
||||
taskProperties.getExternalExecutionId(),
|
||||
taskProperties.getParentExecutionId());
|
||||
}
|
||||
else {
|
||||
TaskExecution taskExecution = new TaskExecution();
|
||||
@@ -209,6 +211,7 @@ public class TaskLifecycleListener implements ApplicationListener<ApplicationEve
|
||||
taskExecution.setStartTime(new Date());
|
||||
taskExecution.setArguments(args);
|
||||
taskExecution.setExternalExecutionId(taskProperties.getExternalExecutionId());
|
||||
taskExecution.setParentExecutionId(taskProperties.getParentExecutionId());
|
||||
this.taskExecution = this.taskRepository.createTaskExecution(
|
||||
taskExecution);
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2015 the original author or authors.
|
||||
* Copyright 2015-2017 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -21,7 +21,6 @@ import java.util.Date;
|
||||
import java.util.List;
|
||||
|
||||
import org.springframework.util.Assert;
|
||||
import org.springframework.util.StringUtils;
|
||||
|
||||
/**
|
||||
* Represents the state of the Task for each execution.
|
||||
@@ -31,11 +30,17 @@ import org.springframework.util.StringUtils;
|
||||
*/
|
||||
|
||||
public class TaskExecution {
|
||||
|
||||
/**
|
||||
* The unique id associated with the task execution.
|
||||
*/
|
||||
private long executionId;
|
||||
|
||||
/**
|
||||
* The parent task execution id.
|
||||
*/
|
||||
private Long parentExecutionId;
|
||||
|
||||
/**
|
||||
* The recorded exit code for the task.
|
||||
*/
|
||||
@@ -87,7 +92,8 @@ public class TaskExecution {
|
||||
public TaskExecution(long executionId, Integer exitCode, String taskName,
|
||||
Date startTime, Date endTime,
|
||||
String exitMessage, List<String> arguments,
|
||||
String errorMessage, String externalExecutionId) {
|
||||
String errorMessage, String externalExecutionId,
|
||||
Long parentExecutionId) {
|
||||
|
||||
Assert.notNull(arguments, "arguments must not be null");
|
||||
this.executionId = executionId;
|
||||
@@ -99,6 +105,16 @@ public class TaskExecution {
|
||||
this.endTime = (endTime != null) ? (Date)endTime.clone() : null;
|
||||
this.errorMessage = errorMessage;
|
||||
this.externalExecutionId = externalExecutionId;
|
||||
this.parentExecutionId = parentExecutionId;
|
||||
}
|
||||
|
||||
public TaskExecution(long executionId, Integer exitCode, String taskName,
|
||||
Date startTime, Date endTime,
|
||||
String exitMessage, List<String> arguments,
|
||||
String errorMessage, String externalExecutionId) {
|
||||
|
||||
this(executionId, exitCode, taskName, startTime, endTime, exitMessage,
|
||||
arguments, errorMessage,externalExecutionId, null);
|
||||
}
|
||||
|
||||
public long getExecutionId() {
|
||||
@@ -169,16 +185,26 @@ public class TaskExecution {
|
||||
this.externalExecutionId = externalExecutionId;
|
||||
}
|
||||
|
||||
public Long getParentExecutionId() {
|
||||
return parentExecutionId;
|
||||
}
|
||||
|
||||
public void setParentExecutionId(Long parentExecutionId) {
|
||||
this.parentExecutionId = parentExecutionId;
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return "TaskExecution{" +
|
||||
"executionId=" + executionId +
|
||||
", parentExecutionId=" + parentExecutionId +
|
||||
", exitCode=" + exitCode +
|
||||
", taskName='" + taskName + '\'' +
|
||||
", startTime=" + startTime +
|
||||
", endTime=" + endTime +
|
||||
", exitMessage='" + exitMessage + '\'' +
|
||||
", errorMessage='" + errorMessage + "\'" +
|
||||
", externalExecutionId='" + externalExecutionId + '\'' +
|
||||
", errorMessage='" + errorMessage + '\'' +
|
||||
", arguments=" + arguments +
|
||||
'}';
|
||||
}
|
||||
|
||||
@@ -104,4 +104,21 @@ public interface TaskRepository {
|
||||
@Transactional
|
||||
void updateExternalExecutionId(long executionid,
|
||||
String externalExecutionId);
|
||||
|
||||
/**
|
||||
* Notifies the repository that a taskExecution has has started.
|
||||
* @param executionid to the task execution to be updated.
|
||||
* @param taskName the name that associated with the task execution.
|
||||
* @param startTime the time task began.
|
||||
* @param arguments list of key/value pairs that configure the task.
|
||||
* @param externalExecutionId id assigned to the task by the platform.
|
||||
* @param parentExecutionId the parent task execution id.
|
||||
|
||||
* @return
|
||||
*/
|
||||
@Transactional
|
||||
TaskExecution startTaskExecution(long executionid, String taskName,
|
||||
Date startTime,List<String> arguments, String externalExecutionId,
|
||||
Long parentExecutionId);
|
||||
|
||||
}
|
||||
|
||||
@@ -61,7 +61,8 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
|
||||
public static final String SELECT_CLAUSE = "TASK_EXECUTION_ID, "
|
||||
+ "START_TIME, END_TIME, TASK_NAME, EXIT_CODE, "
|
||||
+ "EXIT_MESSAGE, ERROR_MESSAGE, LAST_UPDATED, EXTERNAL_EXECUTION_ID ";
|
||||
+ "EXIT_MESSAGE, ERROR_MESSAGE, LAST_UPDATED, "
|
||||
+ "EXTERNAL_EXECUTION_ID, PARENT_EXECUTION_ID ";
|
||||
|
||||
public static final String FROM_CLAUSE = "%PREFIX%EXECUTION";
|
||||
|
||||
@@ -71,14 +72,16 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
public static final String TASK_NAME_WHERE_CLAUSE = "where TASK_NAME = ? ";
|
||||
|
||||
private static final String SAVE_TASK_EXECUTION = "INSERT into %PREFIX%EXECUTION"
|
||||
+ "(TASK_EXECUTION_ID, START_TIME, TASK_NAME, LAST_UPDATED, EXTERNAL_EXECUTION_ID)"
|
||||
+ "values (?, ?, ?, ?, ?)";
|
||||
+ "(TASK_EXECUTION_ID, START_TIME, TASK_NAME, LAST_UPDATED, EXTERNAL_EXECUTION_ID, PARENT_EXECUTION_ID)"
|
||||
+ "values (?, ?, ?, ?, ?, ?)";
|
||||
|
||||
private static final String CREATE_TASK_ARGUMENT = "INSERT into "
|
||||
+ "%PREFIX%EXECUTION_PARAMS(TASK_EXECUTION_ID, TASK_PARAM ) values (?, ?)";
|
||||
|
||||
private static final String START_TASK_EXECUTION = "UPDATE %PREFIX%EXECUTION set "
|
||||
+ "START_TIME = ?, TASK_NAME = ?, LAST_UPDATED = ?, EXTERNAL_EXECUTION_ID = ? where TASK_EXECUTION_ID = ?";
|
||||
+ "START_TIME = ?, TASK_NAME = ?, LAST_UPDATED = ?, "
|
||||
+ "EXTERNAL_EXECUTION_ID = ?, PARENT_EXECUTION_ID = ? "
|
||||
+ "where TASK_EXECUTION_ID = ?";
|
||||
|
||||
private static final String CHECK_TASK_EXECUTION_EXISTS = "SELECT COUNT(*) FROM "
|
||||
+ "%PREFIX%EXECUTION WHERE TASK_EXECUTION_ID = ?";
|
||||
@@ -92,7 +95,8 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
|
||||
private static final String GET_EXECUTION_BY_ID = "SELECT TASK_EXECUTION_ID, " +
|
||||
"START_TIME, END_TIME, TASK_NAME, EXIT_CODE, "
|
||||
+ "EXIT_MESSAGE, ERROR_MESSAGE, LAST_UPDATED, EXTERNAL_EXECUTION_ID "
|
||||
+ "EXIT_MESSAGE, ERROR_MESSAGE, LAST_UPDATED, EXTERNAL_EXECUTION_ID, "
|
||||
+ "PARENT_EXECUTION_ID "
|
||||
+ "from %PREFIX%EXECUTION where TASK_EXECUTION_ID = ?";
|
||||
|
||||
private static final String FIND_ARGUMENT_FROM_ID = "SELECT TASK_EXECUTION_ID, "
|
||||
@@ -150,16 +154,27 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
@Override
|
||||
public TaskExecution createTaskExecution(String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionId) {
|
||||
return createTaskExecution(taskName, startTime, arguments,
|
||||
externalExecutionId, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TaskExecution createTaskExecution(String taskName, Date startTime,
|
||||
List<String> arguments, String externalExecutionId,
|
||||
Long parentExecutionId) {
|
||||
long nextExecutionId = getNextExecutionId();
|
||||
|
||||
TaskExecution taskExecution = new TaskExecution(nextExecutionId, null, taskName,
|
||||
startTime, null, null, arguments, null, externalExecutionId);
|
||||
|
||||
Object[] queryParameters = new Object[]{ nextExecutionId, startTime, taskName, new Date(), externalExecutionId};
|
||||
Object[] queryParameters = new Object[]{ nextExecutionId, startTime,
|
||||
taskName, new Date(), externalExecutionId,
|
||||
parentExecutionId};
|
||||
jdbcTemplate.update(
|
||||
getQuery(SAVE_TASK_EXECUTION),
|
||||
queryParameters,
|
||||
new int[]{ Types.BIGINT, Types.TIMESTAMP, Types.VARCHAR, Types.TIMESTAMP, Types.VARCHAR });
|
||||
new int[]{ Types.BIGINT, Types.TIMESTAMP, Types.VARCHAR,
|
||||
Types.TIMESTAMP, Types.VARCHAR, Types.BIGINT});
|
||||
insertTaskArguments(nextExecutionId, arguments);
|
||||
return taskExecution;
|
||||
}
|
||||
@@ -167,14 +182,25 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
@Override
|
||||
public TaskExecution startTaskExecution(long executionId, String taskName, Date startTime, List<String> arguments,
|
||||
String externalExecutionId) {
|
||||
TaskExecution taskExecution = new TaskExecution(executionId, null, taskName,
|
||||
startTime, null, null, arguments, null, externalExecutionId);
|
||||
return startTaskExecution(executionId, taskName, startTime, arguments,
|
||||
externalExecutionId, null);
|
||||
}
|
||||
|
||||
Object[] queryParameters = new Object[]{ startTime, taskName, new Date(), externalExecutionId, executionId};
|
||||
@Override
|
||||
public TaskExecution startTaskExecution(long executionId, String taskName,
|
||||
Date startTime, List<String> arguments,
|
||||
String externalExecutionId, Long parentExecutionId) {
|
||||
TaskExecution taskExecution = new TaskExecution(executionId, null, taskName,
|
||||
startTime, null, null, arguments,null, externalExecutionId, parentExecutionId);
|
||||
|
||||
Object[] queryParameters = new Object[]{ startTime, taskName,
|
||||
new Date(), externalExecutionId,
|
||||
parentExecutionId, executionId};
|
||||
jdbcTemplate.update(
|
||||
getQuery(START_TASK_EXECUTION),
|
||||
queryParameters,
|
||||
new int[]{ Types.TIMESTAMP, Types.VARCHAR, Types.TIMESTAMP, Types.VARCHAR, Types.BIGINT });
|
||||
new int[]{ Types.TIMESTAMP, Types.VARCHAR, Types.TIMESTAMP,
|
||||
Types.VARCHAR, Types.BIGINT, Types.BIGINT });
|
||||
insertTaskArguments(executionId, arguments);
|
||||
return taskExecution;
|
||||
}
|
||||
@@ -442,6 +468,10 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
@Override
|
||||
public TaskExecution mapRow(ResultSet rs, int rowNum) throws SQLException {
|
||||
long id = rs.getLong("TASK_EXECUTION_ID");
|
||||
Long parentExecutionId = rs.getLong("PARENT_EXECUTION_ID");
|
||||
if(rs.wasNull()) {
|
||||
parentExecutionId = null;
|
||||
}
|
||||
return new TaskExecution(id,
|
||||
getNullableExitCode(rs),
|
||||
rs.getString("TASK_NAME"),
|
||||
@@ -450,7 +480,8 @@ public class JdbcTaskExecutionDao implements TaskExecutionDao {
|
||||
rs.getString("EXIT_MESSAGE"),
|
||||
getTaskArguments(id),
|
||||
rs.getString("ERROR_MESSAGE"),
|
||||
rs.getString("EXTERNAL_EXECUTION_ID"));
|
||||
rs.getString("EXTERNAL_EXECUTION_ID"),
|
||||
parentExecutionId);
|
||||
}
|
||||
|
||||
private Integer getNullableExitCode(ResultSet rs) throws SQLException {
|
||||
|
||||
@@ -55,9 +55,15 @@ public class MapTaskExecutionDao implements TaskExecutionDao {
|
||||
@Override
|
||||
public TaskExecution createTaskExecution(String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionId) {
|
||||
return createTaskExecution(taskName, startTime, arguments,
|
||||
externalExecutionId, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TaskExecution createTaskExecution(String taskName, Date startTime, List<String> arguments, String externalExecutionId, Long parentExecutionId) {
|
||||
long taskExecutionId = getNextExecutionId();
|
||||
TaskExecution taskExecution = new TaskExecution(taskExecutionId, null, taskName,
|
||||
startTime, null, null, arguments, null, externalExecutionId);
|
||||
startTime, null, null, arguments, null, externalExecutionId, parentExecutionId);
|
||||
taskExecutions.put(taskExecutionId, taskExecution);
|
||||
return taskExecution;
|
||||
}
|
||||
@@ -65,12 +71,20 @@ public class MapTaskExecutionDao implements TaskExecutionDao {
|
||||
@Override
|
||||
public TaskExecution startTaskExecution(long executionId, String taskName, Date startTime, List<String> arguments,
|
||||
String externalExecutionid) {
|
||||
TaskExecution taskExecution= taskExecutions.get(executionId);
|
||||
return startTaskExecution(executionId, taskName, startTime, arguments,
|
||||
externalExecutionid, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TaskExecution startTaskExecution(long executionId, String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionid,
|
||||
Long parentExecutionId) {
|
||||
TaskExecution taskExecution= taskExecutions.get(executionId);
|
||||
taskExecution.setTaskName(taskName);
|
||||
taskExecution.setStartTime(startTime);
|
||||
taskExecution.setArguments(arguments);
|
||||
taskExecution.setExternalExecutionId(externalExecutionid);
|
||||
taskExecution.setParentExecutionId(parentExecutionId);
|
||||
|
||||
return taskExecution;
|
||||
}
|
||||
|
||||
@@ -43,6 +43,21 @@ public interface TaskExecutionDao {
|
||||
TaskExecution createTaskExecution( String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionId);
|
||||
|
||||
/**
|
||||
* Save a new {@link TaskExecution}.
|
||||
*
|
||||
* @param taskName the name that associated with the task execution.
|
||||
* @param startTime the time task began.
|
||||
* @param arguments list of key/value pairs that configure the task.
|
||||
* @param externalExecutionId id assigned to the task by the platform
|
||||
* @param parentExecutionId the parent task execution id.
|
||||
* @return A fully qualified {@link TaskExecution} instance.
|
||||
* @since 1.2.0
|
||||
*/
|
||||
TaskExecution createTaskExecution( String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionId,
|
||||
Long parentExecutionId);
|
||||
|
||||
/**
|
||||
* Update and existing {@link TaskExecution} to mark it as started.
|
||||
*
|
||||
@@ -56,6 +71,21 @@ public interface TaskExecutionDao {
|
||||
TaskExecution startTaskExecution(long executionId, String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionId);
|
||||
|
||||
/**
|
||||
* Update and existing {@link TaskExecution} to mark it as started.
|
||||
*
|
||||
* @param executionId the id of the taskExecution to be updated.
|
||||
* @param taskName the name that associated with the task execution.
|
||||
* @param startTime the time task began.
|
||||
* @param arguments list of key/value pairs that configure the task.
|
||||
* @param externalExecutionId id assigned to the task by the platform
|
||||
* @param parentExecutionId the parent task execution id.
|
||||
* @since 1.2.0
|
||||
*/
|
||||
TaskExecution startTaskExecution(long executionId, String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionId,
|
||||
Long parentExecutionId);
|
||||
|
||||
/**
|
||||
* Update and existing {@link TaskExecution} to mark it as completed.
|
||||
*
|
||||
|
||||
@@ -16,7 +16,6 @@
|
||||
|
||||
package org.springframework.cloud.task.repository.support;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.Date;
|
||||
import java.util.List;
|
||||
@@ -109,7 +108,8 @@ public class SimpleTaskRepository implements TaskRepository {
|
||||
taskExecution.getTaskName(),
|
||||
taskExecution.getStartTime(),
|
||||
taskExecution.getArguments(),
|
||||
taskExecution.getExternalExecutionId());
|
||||
taskExecution.getExternalExecutionId(),
|
||||
taskExecution.getParentExecutionId());
|
||||
logger.debug("Creating: " + taskExecution.toString());
|
||||
return daoTaskExecution;
|
||||
}
|
||||
@@ -127,11 +127,8 @@ public class SimpleTaskRepository implements TaskRepository {
|
||||
@Override
|
||||
public TaskExecution startTaskExecution(long executionid, String taskName, Date startTime, List<String> arguments,
|
||||
String externalExecutionId) {
|
||||
initialize();
|
||||
TaskExecution taskExecution =
|
||||
taskExecutionDao.startTaskExecution(executionid, taskName, startTime, arguments, externalExecutionId);
|
||||
logger.debug("Starting: " + taskExecution.toString());
|
||||
return taskExecution;
|
||||
return startTaskExecution(executionid, taskName, startTime, arguments,
|
||||
externalExecutionId, null);
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -140,6 +137,19 @@ public class SimpleTaskRepository implements TaskRepository {
|
||||
taskExecutionDao.updateExternalExecutionId(executionid, externalExecutionId);
|
||||
}
|
||||
|
||||
@Override
|
||||
public TaskExecution startTaskExecution(long executionid, String taskName,
|
||||
Date startTime, List<String> arguments, String externalExecutionId,
|
||||
Long parentExecutionId) {
|
||||
initialize();
|
||||
TaskExecution taskExecution =
|
||||
taskExecutionDao.startTaskExecution(executionid, taskName,
|
||||
startTime, arguments, externalExecutionId,
|
||||
parentExecutionId);
|
||||
logger.debug("Starting: " + taskExecution.toString());
|
||||
return taskExecution;
|
||||
}
|
||||
|
||||
/**
|
||||
* Retrieves the taskExecutionDao associated with this repository.
|
||||
* @return the taskExecutionDao
|
||||
|
||||
@@ -0,0 +1 @@
|
||||
alter table task_execution add PARENT_EXECUTION_ID BIGINT;
|
||||
@@ -0,0 +1 @@
|
||||
alter table task_execution add PARENT_EXECUTION_ID BIGINT;
|
||||
@@ -0,0 +1 @@
|
||||
alter table task_execution add PARENT_EXECUTION_ID BIGINT;
|
||||
@@ -0,0 +1 @@
|
||||
alter table task_execution add PARENT_EXECUTION_ID BIGINT;
|
||||
@@ -0,0 +1 @@
|
||||
alter table task_execution add PARENT_EXECUTION_ID BIGINT;
|
||||
@@ -0,0 +1 @@
|
||||
alter table task_execution add PARENT_EXECUTION_ID BIGINT;
|
||||
@@ -8,7 +8,8 @@ CREATE TABLE TASK_EXECUTION (
|
||||
EXIT_MESSAGE VARCHAR(2500) ,
|
||||
ERROR_MESSAGE VARCHAR(2500) ,
|
||||
LAST_UPDATED TIMESTAMP,
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255)
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255),
|
||||
PARENT_EXECUTION_ID BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE TASK_EXECUTION_PARAMS (
|
||||
|
||||
@@ -8,7 +8,8 @@ CREATE TABLE TASK_EXECUTION (
|
||||
EXIT_MESSAGE VARCHAR(2500) ,
|
||||
ERROR_MESSAGE VARCHAR(2500) ,
|
||||
LAST_UPDATED TIMESTAMP,
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255)
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255),
|
||||
PARENT_EXECUTION_ID BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE TASK_EXECUTION_PARAMS (
|
||||
|
||||
@@ -8,7 +8,8 @@ CREATE TABLE TASK_EXECUTION (
|
||||
EXIT_MESSAGE VARCHAR(2500) ,
|
||||
ERROR_MESSAGE VARCHAR(2500) ,
|
||||
LAST_UPDATED TIMESTAMP,
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255)
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255),
|
||||
PARENT_EXECUTION_ID BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE TASK_EXECUTION_PARAMS (
|
||||
|
||||
@@ -8,7 +8,8 @@ CREATE TABLE TASK_EXECUTION (
|
||||
EXIT_MESSAGE VARCHAR(2500) ,
|
||||
ERROR_MESSAGE VARCHAR(2500) ,
|
||||
LAST_UPDATED TIMESTAMP,
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255)
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255),
|
||||
PARENT_EXECUTION_ID BIGINT
|
||||
) ENGINE=InnoDB;
|
||||
|
||||
CREATE TABLE TASK_EXECUTION_PARAMS (
|
||||
|
||||
@@ -8,7 +8,8 @@ CREATE TABLE TASK_EXECUTION (
|
||||
EXIT_MESSAGE VARCHAR2(2500) ,
|
||||
ERROR_MESSAGE VARCHAR2(2500) ,
|
||||
LAST_UPDATED TIMESTAMP,
|
||||
EXTERNAL_EXECUTION_ID VARCHAR2(255)
|
||||
EXTERNAL_EXECUTION_ID VARCHAR2(255),
|
||||
PARENT_EXECUTION_ID BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE TASK_EXECUTION_PARAMS (
|
||||
|
||||
@@ -8,7 +8,8 @@ CREATE TABLE TASK_EXECUTION (
|
||||
EXIT_MESSAGE VARCHAR(2500) ,
|
||||
ERROR_MESSAGE VARCHAR(2500) ,
|
||||
LAST_UPDATED TIMESTAMP ,
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255)
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255),
|
||||
PARENT_EXECUTION_ID BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE TASK_EXECUTION_PARAMS (
|
||||
|
||||
@@ -7,7 +7,8 @@ CREATE TABLE TASK_EXECUTION (
|
||||
EXIT_MESSAGE VARCHAR(2500) ,
|
||||
ERROR_MESSAGE VARCHAR(2500) ,
|
||||
LAST_UPDATED DATETIME ,
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255)
|
||||
EXTERNAL_EXECUTION_ID VARCHAR(255),
|
||||
PARENT_EXECUTION_ID BIGINT
|
||||
);
|
||||
|
||||
CREATE TABLE TASK_EXECUTION_PARAMS (
|
||||
|
||||
Reference in New Issue
Block a user