13 lines
2.2 KiB
HTML
13 lines
2.2 KiB
HTML
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE html><html xmlns="http://www.w3.org/1999/xhtml" xmlns:epub="http://www.idpf.org/2007/ops" xmlns:m="http://www.w3.org/1998/Math/MathML" xmlns:pls="http://www.w3.org/2005/01/pronunciation-lexicon" xmlns:ssml="http://www.w3.org/2001/10/synthesis" xmlns:svg="http://www.w3.org/2000/svg"><head><title>Archiving</title><link rel="stylesheet" type="text/css" href="docbook-epub.css"/><meta name="generator" content="DocBook XSL Stylesheets V1.78.1"/><link rel="prev" href="apbs07.xhtml" title="BATCH_STEP_EXECUTION_CONTEXT"/><link rel="next" href="apbs09.xhtml" title="International and Multi-byte Characters"/></head><body><header/><section class="section" title="Archiving" epub:type="division" id="metaDataArchiving"><div class="titlepage"><div><div><h2 class="title" style="clear: both">Archiving</h2></div></div></div><p>Because there are entries in multiple tables every time a batch job
|
|
is run, it is common to create an archive strategy for the meta-data
|
|
tables. The tables themselves are designed to show a record of what
|
|
happened in the past, and generally won't affect the run of any job, with
|
|
a couple of notable exceptions pertaining to restart:</p><div class="itemizedlist" epub:type="list"><ul class="itemizedlist" style="list-style-type: disc; "><li class="listitem" epub:type="list-item"><p>The framework will use the meta-data tables to determine if a
|
|
particular JobInstance has been run before. If it has been run, and
|
|
the job is not restartable, then an exception will be thrown.</p></li><li class="listitem" epub:type="list-item"><p>If an entry for a JobInstance is removed without having
|
|
completed successfully, the framework will think that the job is new,
|
|
rather than a restart.</p></li><li class="listitem" epub:type="list-item"><p>If a job is restarted, the framework will use any data that has
|
|
been persisted to the ExecutionContext to restore the Job's state.
|
|
Therefore, removing any entries from this table for jobs that haven't
|
|
completed successfully will prevent them from starting at the correct
|
|
point if run again.</p></li></ul></div></section><footer/></body></html> |