THE INFORMATION IN THIS ARTICLE APPLIES TO:
How can I limit the number of event rule subroutines running?
The number of event rule subroutines running can be limited by setting the following advanced properties in the AdvancedProperties.json.
Asynchronous subroutine global number of threads running
To specify the maximum number of simultaneous asynchronous event rule subroutines running, add:
The default is "10"; "0" = no limit
Asynchronous subroutine queue size per-site
To specify the maximum number of asynchronous event rule subroutines that may be queued before dropping new subroutine, add:
The default is "0", which means no limit; enter a non-zero value to limit it.
To force subroutine to wait until an AWE task completes, make sure that:
- Subroutines are called asynchronously (i.e., the caller rule HAS NO IF FAILED section when calling subroutine)
- AWE tasks are called synchronously (i.e., subroutine has IF FAILED section when calling workflow.