Forums

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

Inquiries about script runner execution time

sciamat
April 15, 2022

hello

I want to batch change the page contents of confunece
I made a script.

But there is one problem.
I tried running it using console and job.
Execution ends after 30 minutes of execution.

Is there no way to solve this?

The execution time should be secured for 2-3 hours.

1 answer

0 votes
Nic Brough -Adaptavist-
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 Champions.
April 15, 2022

Is your script looping, or is it reading a huge amount of pages and simply having to spend time processing them all?

Confluence stops long-running processes to try to preserve resources so that the rest of the system can continue to work.

If you're trying to do too much work in one go, then there's nothing you can do except break the work down into smaller batches.

sciamat
April 16, 2022

thank you for the reply.
It is a task to update the DB contents.
I changed the code written in scriptrunner to Java to run it in the Linux console.

Nic Brough -Adaptavist-
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 Champions.
April 16, 2022

Um, could you explain "task to update the DB contents" - are you running SQL on the Jira database?

If so, then part of the problem could be that you are destroying your Jira installation.

Suggest an answer

Log in or Sign up to answer