|
Рестарт недоработанного джоба
|
|||
---|---|---|---|
#18+
Добрый день. Столкнулся с такой проблемой: есть постоянный джоб, который проходит по таблице с задачами и для каждой из них создается отдельный одноразовый джоб. В рамках этого джоба: 1) устанавливается флаг работы над задачей 2) выполняется задача 3) снимается флаг работы над задачей. Но если во время работы такого джоба произошла какая-нибудь беда (срубили сессию, например), то п.(3) не будет пройден. Вот так попытался потестировать атрибут restartable: Подготовка: Код: plsql 1. 2.
Выполнение: Код: plsql 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. 11. 12.
Проверка: Код: plsql 1. 2. 3. 4.
Нахожу и убиваю сессию: Код: plsql 1. 2.
После этого появляется запись: Код: plsql 1. 2. 3.
но джоб не рестартуется, хотя вот тут написано, что вроде должен: авторJob recovery proceeds as follows: The Scheduler adds an entry to the job log for the instance of the job that was running when the failure occurred. In the log entry, the OPERATION is 'RUN', the STATUS is 'STOPPED', and ADDITIONAL_INFO contains one of the following: REASON="Job slave process was terminated" REASON="ORA-01014: ORACLE shutdown in progress" If restartable is set to TRUE for the job, the job is restarted. If restartable is set to FALSE for the job: If the job is a run-once job and auto_drop is set to TRUE, the job run is done and the job is dropped. If the job is a run-once job and auto_drop is set to FALSE, the job is disabled and the job state is set to 'STOPPED'. If the job is a repeating job, the Scheduler schedules the next job run and the job state is set to 'SCHEDULED'. Помогите понять, почему джоб не рестартуется Код: plsql 1. 2. 3. 4. 5.
... |
|||
:
Нравится:
Не нравится:
|
|||
04.08.2020, 14:24 |
|
|
start [/forum/topic.php?fid=52&fpage=40&tid=1881010]: |
0ms |
get settings: |
7ms |
get forum list: |
12ms |
check forum access: |
4ms |
check topic access: |
4ms |
track hit: |
39ms |
get topic data: |
12ms |
get forum data: |
2ms |
get page messages: |
27ms |
get tp. blocked users: |
1ms |
others: | 13ms |
total: | 121ms |
0 / 0 |