This is an automated email from the ASF dual-hosted git repository. btellier pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/james-project.git
commit b4ef7dda3258df9ea71e0b9478e08932ea637ff5 Author: Benoit Tellier <[email protected]> AuthorDate: Thu May 21 15:28:41 2020 +0700 JAMES-3184 Document RecomputeCurrentQuotasTask RunningOptions in webadmin documentation --- src/site/markdown/server/manage-webadmin.md | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/src/site/markdown/server/manage-webadmin.md b/src/site/markdown/server/manage-webadmin.md index 43b3f26..28332ec 100644 --- a/src/site/markdown/server/manage-webadmin.md +++ b/src/site/markdown/server/manage-webadmin.md @@ -1281,13 +1281,28 @@ go out of sync, leading to inconsistent results being returned to the client. [More details about endpoints returning a task](#Endpoints_returning_a_task). +An admin can specify the concurrency that should be used when running the task: + + - `usersPerSecond` rate at which users quotas should be reprocessed, per second. Defaults to 1. + +This optional parameter must have a strictly positive integer as a value and be passed as query parameters. + +Example: + +``` +curl -XPOST /quota/users?task=RecomputeCurrentQuotas&usersPerSecond=20 +``` + The scheduled task will have the following type `recompute-current-quotas` and the following `additionalInformation`: ``` { "type":"recompute-current-quotas", "processedQuotaRoots": 3, - "failedQuotaRoots": ["#private&bob@localhost"] + "failedQuotaRoots": ["#private&bob@localhost"], + "runningOptions": { + "usersPerSecond":20 + } } ``` --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
