AxaFrance / happy-jira-link

Azure Pipeline templates to enrich PR tags automatically using JIRA Cards
MIT License
1 stars 0 forks source link

Add resilience patterns when consuming the JIRA API #2

Open Olisail opened 1 year ago

Olisail commented 1 year ago

When an incident occurs, in some cases, the API call ends up hanging up indefinitely. I suggest setting up at least the -TimeoutSec option.

A retry pattern could be added too.

Olisail commented 1 year ago

https://learn.microsoft.com/en-us/powershell/module/microsoft.powershell.utility/invoke-restmethod?view=powershell-7.3#-timeoutsec