Skip to content

Commit

Permalink
CORE-16879 - new version for flow config
Browse files Browse the repository at this point in the history
  • Loading branch information
conalsmith-r3 committed Sep 7, 2023
1 parent 60a3f80 commit cb44ddb
Show file tree
Hide file tree
Showing 2 changed files with 102 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
"type": "object",
"default": {},
"properties": {
"maxRetryWindowDuration": {
"description": "The duration in milliseconds after a transient error that Corda retries a flow before failing it. A value of zero disables retries.",
"maxRetryAttempts": {
"description": "The maximum number of times Corda retries a transient error before failing the flow. A value of zero disables retries.",
"type": "integer",
"minimum": 0,
"maximum": 2147483647,
"default": 120000
"maximum": 1000,
"default": 5
},
"maxRetryDelay": {
"description": "The maximum delay in milliseconds before Corda schedules a retry.",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,98 @@
{
"$schema": "https://json-schema.org/draft/2019-09/schema",
"$id": "https://corda.r3.com/net/corda/schema/configuration/flow/1.0/corda.flow.json",
"title": "Corda Flow Configuration Schema",
"description": "Configuration schema for the flow section.",
"type": "object",
"default": {},
"properties": {
"processing": {
"description": "Settings for flow pipeline processing.",
"type": "object",
"default": {},
"properties": {
"maxRetryWindowDuration": {
"description": "The duration in milliseconds after a transient error that Corda retries a flow before failing it. A value of zero disables retries.",
"type": "integer",
"minimum": 0,
"maximum": 2147483647,
"default": 120000
},
"maxRetryDelay": {
"description": "The maximum delay in milliseconds before Corda schedules a retry.",
"type": "integer",
"minimum": 1000,
"maximum": 2147483647,
"default": 16000
},
"maxFlowSleepDuration": {
"description": "The maximum delay in milliseconds before Corda schedules a periodic wake-up.",
"type": "integer",
"minimum": 1000,
"maximum": 2147483647,
"default": 900000
},
"cleanupTime": {
"description": "The length of time in milliseconds that the flow mapper holds onto its state for a flow that has finished. This value should be at least 2 times larger than the session.p2pTTL.",
"type": "integer",
"minimum": 1000,
"maximum": 2147483647,
"default": 600000
}
},
"additionalProperties": false
},
"session": {
"description": "Settings for flow sessions.",
"type": "object",
"default": {},
"properties": {
"timeout": {
"description": "The length of time in milliseconds that Corda waits when no message has been received from a counterparty before causing the session to error.",
"type": "integer",
"minimum": 1000,
"maximum": 2147483647,
"default": 1800000
},
"p2pTTL": {
"description": "The TTL set in milliseconds. This is added to the current time and set on messages passed to the P2P layer to send to a counterparty. Messages received with a TTL timestamp set in the past will be discarded.",
"type": "integer",
"minimum": 10000,
"maximum": 2147483647,
"default": 300000
},
"cleanupTime": {
"description": "The length of time in milliseconds that the flow mapper holds onto its state for a session after the session has finished. This value should be at least 2 times larger than the session.p2pTTL",
"type": "integer",
"minimum": 10000,
"maximum": 2147483647,
"default": 600000
}
},
"additionalProperties": false
},
"event": {
"description": "Settings for external events within a flow.",
"type": "object",
"default": {},
"properties": {
"messageResendWindow": {
"description": "The length of time in milliseconds that Corda waits before resending unprocessed external events.",
"type": "integer",
"minimum": 1000,
"maximum": 2147483647,
"default": 60000
},
"maxRetries": {
"description": "The maximum number of times Corda retries a request before returning an exception.",
"type": "integer",
"minimum": 0,
"maximum": 2147483647,
"default": 5
}
},
"additionalProperties": false
}
},
"additionalProperties": false
}

0 comments on commit cb44ddb

Please sign in to comment.