Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change skew batch to use skew dispatcher #4133

Merged
merged 12 commits into from
Mar 28, 2019
Merged
Show file tree
Hide file tree
Changes from 11 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions src/classes/CRLP_AccountSkew_SoftCredit_BATCH.cls
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@ public class CRLP_AccountSkew_SoftCredit_BATCH extends CRLP_Batch_Base_Skew impl
String className = CRLP_AccountSkew_SoftCredit_BATCH.class.getName();
if (CRLP_Rollup_SVC.isCustomizableRollupEngineEnabled) {
if (!UTIL_MasterSchedulableHelper.hasRunningJob(className)) {
CRLP_RollupBatch_SVC.executeBatchRollupJob(CRLP_RollupProcessingOptions.RollupType.AccountContactSoftCredit,
CRLP_RollupProcessingOptions.BatchJobMode.SkewMode);
Database.executeBatch(new CRLP_SkewDispatcher_BATCH(
CRLP_RollupProcessingOptions.RollupType.AccountContactSoftCredit),
CRLP_SkewDispatcher_BATCH.BATCH_SIZE
);
} else {
logDuplicateBatchError(className);
}
Expand Down
6 changes: 4 additions & 2 deletions src/classes/CRLP_ContactSkew_BATCH.cls
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ public class CRLP_ContactSkew_BATCH extends CRLP_Batch_Base_Skew implements Data
String className = CRLP_ContactSkew_BATCH.class.getName();
if (CRLP_Rollup_SVC.isCustomizableRollupEngineEnabled) {
if (!UTIL_MasterSchedulableHelper.hasRunningJob(className)) {
CRLP_RollupBatch_SVC.executeBatchRollupJob(jobType,
CRLP_RollupProcessingOptions.BatchJobMode.SkewMode);
Database.executeBatch(new CRLP_SkewDispatcher_BATCH(
CRLP_RollupProcessingOptions.RollupType.ContactHardCredit),
CRLP_SkewDispatcher_BATCH.BATCH_SIZE
);
} else {
logDuplicateBatchError(className);
}
Expand Down
6 changes: 4 additions & 2 deletions src/classes/CRLP_ContactSkew_SoftCredit_BATCH.cls
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ public class CRLP_ContactSkew_SoftCredit_BATCH extends CRLP_Batch_Base_Skew impl
String className = CRLP_ContactSkew_SoftCredit_BATCH.class.getName();
if (CRLP_Rollup_SVC.isCustomizableRollupEngineEnabled) {
if (!UTIL_MasterSchedulableHelper.hasRunningJob(className)) {
CRLP_RollupBatch_SVC.executeBatchRollupJob(jobType,
CRLP_RollupProcessingOptions.BatchJobMode.SkewMode);
Database.executeBatch(new CRLP_SkewDispatcher_BATCH(
CRLP_RollupProcessingOptions.RollupType.ContactSoftCredit),
CRLP_SkewDispatcher_BATCH.BATCH_SIZE
);
} else {
logDuplicateBatchError(className);
}
Expand Down
6 changes: 4 additions & 2 deletions src/classes/CRLP_GAU_BATCH.cls
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,10 @@ public class CRLP_GAU_BATCH extends CRLP_Batch_Base_Skew implements Database.Bat
String className = CRLP_GAU_BATCH.class.getName();
if (CRLP_Rollup_SVC.isCustomizableRollupEngineEnabled) {
if (!UTIL_MasterSchedulableHelper.hasRunningJob(className)) {
CRLP_RollupBatch_SVC.executeBatchRollupJob(jobType,
CRLP_RollupProcessingOptions.BatchJobMode.SkewMode);
Database.executeBatch(new CRLP_SkewDispatcher_BATCH(
CRLP_RollupProcessingOptions.RollupType.GAU),
CRLP_SkewDispatcher_BATCH.BATCH_SIZE
);
} else {
logDuplicateBatchError(className);
}
Expand Down