Click here to Skip to main content
15,896,606 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,

I am executing some SSIS Packages using my Console application, Like MethodA calls MethodB, the MethodB calls execute Package, MethodA loops MethodB for multiple packages.

But I want to exit out of the MethodB if it is taking like more than 30 minutes to execute.

The execution flow in my application is Main calls MethodA, MethodA calls MethodB for multiple times each time for a package, I want to check how long the MethodB is taking to execute the Package if its taking more than 30 minutes I want to exit from it but want to continue with remaining Packages in the loop, so as I need to continue with it. Any help is much appreciated.

Any code snippet, a link or even a suggestion would be greatly helpful. Thanks in advance my friends.

What I have tried:

Searching online asking friends and colleagues and trying different options and executing it.
Posted
Comments
PIEBALDconsult 7-Nov-16 19:59pm    
Best to have an abort feature in MethodB. If possible.
[no name] 7-Nov-16 21:18pm    
Can you please help me how to combine timer and abort in one function, is it possible by using task parallel library my friend?
[no name] 7-Nov-16 20:23pm    
"Searching online asking friends and colleagues and trying different options and executing it.", funny this is all you ever seem to try. Maybe you should try something else.
[no name] 7-Nov-16 21:19pm    
Yes I'm trying my friend

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900