Gaurav
Gaurav

Reputation: 915

Terminate SSIS package after specific time interval

We are scheduling SSIS packages using Windows Task Scheduler. Every hour the scheduled task will create a new instance of package and start its execution. We need to make sure that previous instance is terminated before next execution starts. Is it possible to terminate package execution from with-in package itself after specific time interval?

Upvotes: 2

Views: 2435

Answers (1)

GShenanigan
GShenanigan

Reputation: 5493

In Windows Task Scheduler, if you go to the "Settings" tab of your task, there is a checkbox with the option to "Stop the task if it runs longer than:".

Set this to the desired time interval, and Task Scheduler will kill the process when the specified time is elapsed.

Example of the setting in the Task Scheduler

Upvotes: 1

Related Questions