Skip to content

TaskManager

Configures task execution settings including retry strategies.

This object can be configured from the WebUI under Settings › Task Manager

Type: UnsignedInt · default: 3 · min: 1

Maximum number of attempts for retrying a task

Type: TaskRetryStrategy · required

Strategy to use for retrying failed tasks

Type: Duration · default: "6h"

Total deadline for retrying a task before it is marked as failed

The TaskManager singleton is available via the urn:stalwart:jmap capability.

This is a standard Foo/get method as defined in RFC 8620, Section 5.1.

For singletons, the ids argument should be the literal singleton (or null to return the single instance).

This method requires the sysTaskManagerGet permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:TaskManager/get",
{
"ids": [
"singleton"
]
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

This is a standard Foo/set method as defined in RFC 8620, Section 5.3.

For singletons, only the update argument with id singleton is accepted; create and destroy arguments are rejected.

This method requires the sysTaskManagerUpdate permission.

Terminal window
curl -X POST https://mail.example.com/api \
-H 'Authorization: Bearer $TOKEN' \
-H 'Content-Type: application/json' \
-d '{
"methodCalls": [
[
"x:TaskManager/set",
{
"update": {
"singleton": {
"maxAttempts": 3
}
}
},
"c1"
]
],
"using": [
"urn:ietf:params:jmap:core",
"urn:stalwart:jmap"
]
}'

stalwart-cli wraps the same JMAP calls. See the CLI reference for installation, authentication, and general usage.

Terminal window
stalwart-cli get TaskManager
Terminal window
stalwart-cli update TaskManager --field maxAttempts=3

Retry strategy for failed tasks.

Exponential backoff retry strategy settings.

Type: Float · default: 2.0 · min: 1

Backoff factor for calculating retry delays

Type: Duration · default: "1m"

Initial delay before retrying a failed task

Type: Duration · default: "30m"

Maximum delay between retry attempts

Type: Boolean · default: true

Whether to apply jitter to the retry delay to avoid thundering herd problem

Fixed delay retry strategy settings.

Type: Duration · default: "5m"

Fixed delay before retrying a failed task