Are the steps to update the database to resolve this issue documented? We had a power failure and I have two jobs that are now failing to start with the message "instance is already running: A job execution for this job is already running: JobInstance: id=124110"
I found both job instances in the tables but I'm not sure what to do with them to resolve the issue. Should I just delete all rows related to these two job instances or can I modify the status columns to get the framework to realize they fail and recover?
Code:SELECT * FROM BATCH_JOB_INSTANCE BJI LEFT JOIN BATCH_JOB_EXECUTION BJE ON BJI.JOB_INSTANCE_ID = BJE.JOB_INSTANCE_ID LEFT JOIN BATCH_STEP_EXECUTION BSE ON BJE.JOB_EXECUTION_ID = BSE.JOB_EXECUTION_ID WHERE BJI.JOB_INSTANCE_ID IN (124108, 124110)Code:JOB_INSTANCE_ID VERSION JOB_NAME JOB_KEY JOB_EXECUTION_ID VERSION JOB_INSTANCE_ID CREATE_TIME START_TIME END_TIME STATUS CONTINUABLE EXIT_CODE EXIT_MESSAGE STEP_EXECUTION_ID VERSION STEP_NAME JOB_EXECUTION_ID START_TIME END_TIME STATUS COMMIT_COUNT ITEM_COUNT READ_SKIP_COUNT WRITE_SKIP_COUNT ROLLBACK_COUNT CONTINUABLE EXIT_CODE EXIT_MESSAGE 124108 0 statsPurgingJob STORED_DATE=Sun Jan 11 06:00:35 CST 2009; 130388 2 124108 2009-01-11 06:01:30.124 2009-01-11 06:01:30.135 <null> STARTED N UNKNOWN <null> 151300 0 org.jasig.portal.stats.purge.StatsPurgingStep#1eb2c1b 130388 2009-01-11 06:01:32.022 <null> STARTED 0 0 0 0 0 Y CONTINUABLE <null> 124110 0 statsAggregateJob STORED_DATE=Sun Jan 11 05:51:52 CST 2009; 130390 2 124110 2009-01-11 06:03:00.118 2009-01-11 06:03:00.126 <null> STARTED N UNKNOWN <null> 151302 0 StatsAggregatingStep 130390 2009-01-11 06:03:00.892 <null> STARTED 0 0 0 0 0 Y CONTINUABLE <null>


Reply With Quote
