async business rule - Order maintained?

Shibu2
Kilo Expert

Say I have an async update business rule on a record and some script which runs after update of the record. Will order of execution of the script be maintained if the record gets updated for two successive updates of the same record with minimal time difference? Is it using a queuing mechanism to push work in the background? I understand that it moves the execution of the script to a different processing thread as per this article, but will a queue be maintained? Or will both the updates be made to run in parallel?

 

 

1 ACCEPTED SOLUTION

The order cannot be fully guaranteed as the scheduler contains multiple queues and all of your async BRs would be executed in different queues depending on its availability. If all of your async BRs are send to a single queue then it would be executed one after the other but this is not the case here.

You can see the list of all available schedulers in the stats.do page. By default, most instances have 8 scheduler worker queues.

find_real_file.png

View solution in original post

8 REPLIES 8

The order cannot be fully guaranteed as the scheduler contains multiple queues and all of your async BRs would be executed in different queues depending on its availability. If all of your async BRs are send to a single queue then it would be executed one after the other but this is not the case here.

You can see the list of all available schedulers in the stats.do page. By default, most instances have 8 scheduler worker queues.

find_real_file.png

Additionally i have tried to test it, you can see my ASYNC test BR is going to different queue based on its availability.

find_real_file.png

Great. Thanks for taking the effort in testing this Allikutty.

 

 

You are welcome