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

set internal processing code to proceed on success #37

Merged
Show file tree
Hide file tree
Changes from all 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
Original file line number Diff line number Diff line change
Expand Up @@ -136,10 +136,11 @@ PRINT @BatchInstanceId;

UPDATE [omd].[BATCH_INSTANCE]
SET
EXECUTION_STATUS_CODE = 'Succeeded',
NEXT_RUN_STATUS_CODE = 'Proceed',
END_TIMESTAMP = SYSUTCDATETIME()
WHERE BATCH_INSTANCE_ID = @BatchInstanceId
EXECUTION_STATUS_CODE = 'Succeeded',
NEXT_RUN_STATUS_CODE = 'Proceed',
INTERNAL_PROCESSING_CODE = 'Proceed',
END_TIMESTAMP = SYSUTCDATETIME()
WHERE BATCH_INSTANCE_ID = @BatchInstanceId

GOTO EndOfProcedure

Expand Down
13 changes: 7 additions & 6 deletions Direct_Framework/Stored Procedures/omd.UpdateModuleInstance.sql
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,13 @@ BEGIN TRY

UPDATE [omd].[MODULE_INSTANCE]
SET
EXECUTION_STATUS_CODE = 'Succeeded',
NEXT_RUN_STATUS_CODE = 'Proceed',
END_TIMESTAMP = SYSUTCDATETIME(),
ROWS_INPUT = @RowCountSelect,
ROWS_INSERTED = @RowCountInsert
WHERE MODULE_INSTANCE_ID = @ModuleInstanceId
EXECUTION_STATUS_CODE = 'Succeeded',
NEXT_RUN_STATUS_CODE = 'Proceed',
INTERNAL_PROCESSING_CODE = 'Proceed',
END_TIMESTAMP = SYSUTCDATETIME(),
ROWS_INPUT = @RowCountSelect,
ROWS_INSERTED = @RowCountInsert
WHERE MODULE_INSTANCE_ID = @ModuleInstanceId
END TRY
BEGIN CATCH
THROW
Expand Down