AXForum  
Вернуться   AXForum > Microsoft Dynamics AX > DAX Blogs
All
Забыли пароль?
Зарегистрироваться Правила Справка Пользователи Сообщения за день Поиск

 
 
Опции темы Поиск в этой теме Опции просмотра
Старый 29.08.2021, 05:36   #1  
Blog bot is offline
Blog bot
Участник
 
25,644 / 848 (80) +++++++
Регистрация: 28.10.2006
d365technext: D365FO Batch Job retries
Источник: http://d365technext.blogspot.com/202...b-retries.html
==============



Enable automatic retries on batch jobs



In the April/May released, Microsoft introduces the feature to retry the batch job, In the past, if the Finance and Operations apps experience any kind of loss of connection to Microsoft SQL Server, then all batch jobs that are running fail, and the reason is, on Azure if the connection is lost then the recovery is almost impossible.


So, Microsoft introduces an Interface class that will batch to reset itself in case of connection loss or failure.


How you can implement it in your code?


Here is an example if you are using the "RunBaseBatch" class in your batch Job.
class TestBatchJob extends RunBaseBatch implements BatchRetryable

{

[Wrappable(true), Replaceable(true)] // Change to meet your customizability requirements

public boolean isRetryable() // Use final if you want to prevent overriding

{

return true;

}

}

Here is an example if you are using the "SysOperationServiceController" class in your batch Job.

class TestBatchJob extends SysOperationServiceController implements BatchRetryable

{

[Wrappable(true), Replaceable(true)] // Change to meet your customizability requirements

public boolean isRetryable() // Use final if you want to prevent overriding

{

return true;

}

}




Important

If you designing a multithreading job and adding the runtime task, then you should implement this interface on both the main controller and the task controller.




If you want to disable the retry of the batch job then add your class in the

Batch class configuration overrides



Overrides setup









Источник: http://d365technext.blogspot.com/202...b-retries.html
__________________
Расскажите о новых и интересных блогах по Microsoft Dynamics, напишите личное сообщение администратору.
 

Похожие темы
Тема Автор Раздел Ответов Посл. сообщение
d365technext: How to disable/hide report/Batch Job parameter on Dialogue Blog bot DAX Blogs 0 27.08.2021 20:15
kurthatlevik: Batch Jobs; Take control of the executions Blog bot DAX Blogs 0 20.01.2020 20:13
d365technext: Batch job Execution for ALL Companies Blog bot DAX Blogs 0 02.08.2018 01:40
d365technext: Batch Multi threading D365FO AX7 Blog bot DAX Blogs 0 31.07.2018 23:16
wiki.dynamicsbook: Changes Made in Navision Attain 3.60 Blog bot Dynamics CRM: Blogs 0 02.09.2008 13:23

Ваши права в разделе
Вы не можете создавать новые темы
Вы не можете отвечать в темах
Вы не можете прикреплять вложения
Вы не можете редактировать свои сообщения

BB коды Вкл.
Смайлы Вкл.
[IMG] код Вкл.
HTML код Выкл.
Быстрый переход

Рейтинг@Mail.ru
Часовой пояс GMT +3, время: 17:38.