Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Scriptrunner console script never terminated

scriptIt March 7, 2022

Hi Experts,

I have a groovy script which copies issues from one project to another along with few sets of fields. I have used this script multiple times without any problem, but recently for the past couple of times I experienced very strange behaviour.

When I executed the script from scriptrunner console, script didn't terminate after completion. But, script execution restarted from the beginning again, performing same set of actions. This repeated execution never terminated, I had to disable the scriptrunner plugin in order to stop this never ending execution.

Can anyone please explain the magic here.

Note:

1. There are no loops in the script.

2. Sever was already loaded  ( JDBC connection count was high, Thread count was high )

1 answer

0 votes
Tuncay Senturk _Snapbytes_
Community Champion
March 7, 2022

Hi @scriptIt 

I think it's better you share that code with us. The devil is in details.

scriptIt May 12, 2022

Hi @Tuncay Senturk _Snapbytes_ ,

Never mind, root cause was unavailability of worker threads due to other heavy load on system. Due to unavailable threads, script was re-assigned on multiple threads automatically by the JVM.

Tuncay Senturk _Snapbytes_
Community Champion
May 13, 2022

Oh ok! Thanks for sharing!

Suggest an answer

Log in or Sign up to answer