The database which is the value of the event tracing property event_trace_rdb_url will automatically creates two tables JOB_EXECUTION_LOG and JOB_STATUS_TRACE_LOG and several indexes.

JOB_EXECUTION_LOG Columns

Column nameColumn typeRequiredDescribe
idVARCHAR(40)YesPrimary key
job_nameVARCHAR(100)YesJob name
task_idVARCHAR(1000)YesTask name, create new tasks every time the job runs.
hostnameVARCHAR(255)YesHostname
ipVARCHAR(50)YesIP
sharding_itemINTYesSharding item
execution_sourceVARCHAR(20)YesSource of job execution. The value options are NORMAL_TRIGGER, MISFIRE, FAILOVER.
failure_causeVARCHAR(2000)NoThe reason for execution failure
is_successBITYesExecute successfully or not
start_timeTIMESTAMPYesJob start time
complete_timeTIMESTAMPNoJob end time

JOB_EXECUTION_LOG records the execution history of each job. There are two steps:

  1. When the job is executed, program will create one record in the JOB_EXECUTION_LOG, and all fields except failure_cause and complete_time are not empty.
  2. When the job completes execution, program will update the record, update the columns of is_success, complete_time and failure_cause(if the job execution fails).

JOB_STATUS_TRACE_LOG Columns

Column nameColumn typeRequiredDescribe
idVARCHAR(40)YesPrimary key
job_nameVARCHAR(100)YesJob name
original_task_idVARCHAR(1000)YesOriginal task name
task_idVARCHAR(1000)YesTask name
slave_idVARCHAR(1000)YesServer’s name of executing the job. The valve is server’s IP for ElasticJob-Lite, is Mesos‘s primary key for ElasticJob-Cloud.
sourceVARCHAR(50)YesSource of job execution, the value options are CLOUD_SCHEDULER, CLOUD_EXECUTOR, LITE_EXECUTOR.
execution_typeVARCHAR(20)YesType of job execution, the value options are NORMAL_TRIGGER, MISFIRE, FAILOVER.
sharding_itemVARCHAR(255)YesCollection of sharding item, multiple sharding items are separated by commas.
stateVARCHAR(20)YesState of job execution, the value options are TASK_STAGING, TASK_RUNNING, TASK_FINISHED, TASK_KILLED, TASK_LOST, TASK_FAILED, TASK_ERROR.
messageVARCHAR(2000)YesMessage
creation_timeTIMESTAMPYesCreate time

JOB_STATUS_TRACE_LOG record the job status changes. Through the task_id of each job, user can query the life cycle and running track of the job status change.