Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Error- Can't get old thread name when using threads in script runner Listener

Dar Kronenblum
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
May 28, 2018

Hi,

I'm using script listener to run some action on an updated issue, the actions can be quite heavy and I'm using threads to prevent the users from waiting.

In some cases I see this error in the logs:

'Can't get old thread name'

Any idea why it happens?

My code is looking like this:

Thread.start({
try {
xxxxxx
someFunction(issue)


}
catch (Exception ex) {
log.error("error found+" error: "+ex.toString());
}
})



void someFunction(Issue issue) {
Thread.start({
xxxxxxx
})
}

thanks

Dar

0 answers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events