Created
September 8, 2016 17:17
-
-
Save W3BGUY/ff4b884b52648da0d02045d93c744faf to your computer and use it in GitHub Desktop.
JitterBit Script to check for running operations. If operations are not currently running, start operation. This works very well when dealing with scheduled scripts that may overlap.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<trans> | |
$isInQueue=GetOperationQueue("<TAG>Operations/OperationToCheck01</TAG>"); | |
$isInQueue2=GetOperationQueue("<TAG>Operations/OperationToCheck02</TAG>"); | |
$isRunning=$isInQueue[0][1]; | |
$isRunning2=$isInQueue2[0][1]; | |
if(($isRunning==1 && $isRunning!=Null()) || ($isRunning2==1 && $isRunning2!=Null()), | |
WriteToOperationLog("Skip for now: "+$isRunning+" / "+$isRunning2);, | |
WriteToOperationLog("Nothign is Running - Starting Operation Chain."); | |
RunOperation("<TAG>Operations/OperationToCheck01</TAG>"); | |
); | |
</trans> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment