-
-
Notifications
You must be signed in to change notification settings - Fork 116
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
Avoid pointless execution run after a CleanPreviousRun results in all pipelines having the status Success #65
Comments
I've tested this situation and based on my understanding the ExecuteWrapper proc does handle this as part of the ultimate ELSE condition...
What it doesn't do is move the successful worker records into the ExecutionLog table before doing the truncate. Which i'll fix. However, I'm thinking about your title of the issue. Avoid pointless execution run. Are you suggesting that when triggered. If all workers are already successful the framework should just update logs and stop? Is this a pointless old execution run? Or a just a new run that should have logs updated? Cheers |
You're right, for some reason I didn't notice that. It will create a new run, just miss the logs of the previous run but you can probably even use that bit of code I put there to archive the logs before starting the new run. It's actually a good question. From my perspective it's an old execution run but I can see arguments for either option. Let me explain why:
Do you see what I mean? Edit: My pointless tag was pretty much aimed at a run that wouldn't do anything at all but I was wrong about that so this isn't really about something being pointless or not anymore, it's more about how to approach a run that finished successfully but that for some reason wasn't recorded as such. |
Sure, yes, ok. |
Use Case:
If the metadata of some pipelines, for some reason, isn't updated, when a new execution is triggered and the Clean Up Previous Run activity runs, the status of all pipelines not updated will be changed to Success if they completed successfully.
Once that activity completes, the Execution Wrapper activity will start a new execution that will be pointless since all pipelines have finished successfully and nothing will happen during this run, it will only serve to clean the CurrentExecution table at the end.
Suggestion:
Tweak the ExecutionWrapper stored procedure to consider this particular case.
One possible solution is after the check for a running execution is done, to add the following piece of code
The text was updated successfully, but these errors were encountered: