Snow-Shell / servicenow-powershell

PowerShell module to automate ServiceNow service and asset management. This module can be used standalone, with Azure Automation, or Docker.
Apache License 2.0
359 stars 170 forks source link

Allow timeout to be specified for requests #247

Closed car1bo closed 10 months ago

car1bo commented 1 year ago

This PR is to implement #246

This is achieved by adding a TimeoutSec parameter to Get-ServiceNowRecord that is passed into Invoke-ServiceNowRestMethod and into the underlying webrequest.

The parameter respects the Powershell Default of 0 for an indefinite timeout, therefore this makes no change in default functionality, and only applies if the parameter is defined.

gdbarron commented 10 months ago

Closing this as no response from issue questions and being replaced with an instance level timeout with #253