It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Are my post functions slowing down my transition time?

I have one transition with 22 post functions:

- Copy values to ephemerals

- Parsing text

- Set values as a function of other fields

- Math calculations

It takes 20 seconds to go to the next status...

My App server is a Linux Red Hat with 4GB, 4 CPUs.

My DB is a SQLServer R2 2008, 16 GB and 4 CPUs

The other transitions takes like 4 seconds, which is a very good response time for us.

1 answer

Yes. Post function slows down transition time. You can have the experiment - try to add something like Thread.sleep(10000) - and your transition will be delayed for 10 seconds.

I would recommend to you to recreate your business logic to run those routines in the separate thread. So transition will just start the method and it will continue instantly. Please note that the changes will be done only after the transition execution and you cannot control the exact time - so you should handle multithreading issues by yourself.

I have strong idea that only small set of your postfunctions take a lot of time. I would recommend to include into your plugin one additional postfunction that will just log the time and put it before and after each custom postfunction - so you will get complete information on the bottlenecks.

Please note that undepending on the amount of processor cores - your postfunctions will be executed subsequently one by one - so without moving the logic into separate thread you will not speed up the process itself

Suggest an answer

Log in or Sign up to answer
TAGS
Community showcase
Posted in Industry Groups

🚗 How the Engineers at Karma used Atlassian products to build the Karma Revero

Hello, Automotive enthusiasts! Are you ready for October to begin 🙀? I wanted to share with you an Article I came across from Work/Life (The Atlassian blog) from Soumya Menon of Go2Group, a worldw...

39 views 2 1
View post

Community Events

Connect with like-minded Atlassian users at free events near you!

Find an event

Connect with like-minded Atlassian users at free events near you!

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you