You can use these two reconciler attributes to tune per-account workflows:
maxRetries - Specifies the maximum number of times that Waveset retries a failed reconciliation request. The default value is 3. Increasing this number will increase reconciliation time, but will also increase the chances of failed requests that eventually succeed.
lockwaitThreshold - Specifies the minimum number of milliseconds that must past between reconcile request retry attempts. The default is 5000 milliseconds (5 seconds). Increasing this number will increase the time required to retry failed attempts, but increases time available to resolve outstanding issues.
The product of these two values should be at least the time required for the customer’s per account workflows to succeed. This interval will allow for lock-contention issues to resolve internally in the reconciler.
Consider the following scenario:
a per-account workflow requires 30 seconds on average to complete
the value of maxRetries is 3
the value of lockwaitThreshold is 5000
The total time spent retrying will be 15 seconds (3 x 5000 milliseconds).
This configuration is not optimal because the total time spent retrying (15 seconds) is less than 30. The customer in this example scenario should increase the lockwaitThreshold and maxRetries values so that their product exceeds total per-account workflow time.