Timeout HTTP requests to JIRA more aggressively when a rule starts to run slowly

Description

Currently all Http requests timeout after 30 seconds.

Sometimes however this can lead to incredibly slow running rules when JIRA is slow to respond. Sometimes simple issue operations like edit/comment/transition can take 10+ seconds for a single issue.

Here's some numbers for the 11th of May 2017:

These are all the requests taking longer than 1 second.

We should look at reducing the timeout to 1 second per request if a rule goes above a total duration threshold (say 20 seconds). In the audit log we can show a generic "JIRA was slow to respond. The operation was performed but we're unsure of the result. Most likely it was successful".

Environment

None

Assignee

Andreas Knecht (CB)

Reporter

Andreas Knecht (CB)

Labels

None

Links

1

Fix versions

Configure