
Disable retries when you call a batch via code (sysOperation or Runbase)
YourControllerClass controller = new YourControllerClass();
controller.parmShowDialog(false);
controller.parmShowProgressForm(false);
controller.parmExecutionMode(SysOperationExecutionMode::Synchronous);
//Disable retries controller.batchInfo().parmRetriesOnFailure(0);
controller.startOperation();
Disable retries in the main method of the batch via code (sysOperation or Runbase)
public static void main(
Args _args
)
{
YourControllerClass controller = YourControllerClass::construct();
controller.initializeFromArgs(_args);
//Disable retry on failure
controller.batchInfo().parmRetriesOnFailure(0);
controller.startOperation();
}
Leave a comment