Timeout runnig job

avatar
(anonymous user)

Good afternoon
I have a script to automatically backup and restore a database. I am using the Restore-SqlDatabase cmdlet module SqlServer.

  1. Backup stage.

Database recovery phase
Database recovery takes 40-50 minutes.
While the task is running, after 30 minutes the task timer is reset and the task is restarted, creating another backup, while database recovery is still in progress.
The job confirmation timeout is set to 180.

  1. How to increase the task timeout?

Product: PowerShell Universal
Version: 4.2.18


All Comments (0)

Sysadminotaur pondering a question Special Q&A

Our CTO is answering your AI questions

A rare opportunity — ask our CTO directly.

9 questions already asked Ends in 7 days
Ask your question →