forked from serverlessworkflow/specification
-
Notifications
You must be signed in to change notification settings - Fork 0
/
timeouts.json
96 lines (96 loc) · 2.93 KB
/
timeouts.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
{
"$id": "https://serverlessworkflow.io/schemas/0.8/timeouts.json",
"$schema": "http://json-schema.org/draft-07/schema#",
"description": "Serverless Workflow specification - functions schema",
"type": "object",
"timeouts": {
"oneOf": [
{
"type": "string",
"format": "uri",
"description": "URI to a resource containing timeouts definitions (json or yaml)"
},
{
"type": "object",
"description": "Workflow default timeouts",
"properties": {
"workflowExecTimeout": {
"$ref": "#/definitions/workflowExecTimeout"
},
"stateExecTimeout": {
"$ref": "#/definitions/stateExecTimeout"
},
"actionExecTimeout": {
"$ref": "#/definitions/actionExecTimeout"
},
"branchExecTimeout": {
"$ref": "#/definitions/branchExecTimeout"
},
"eventTimeout": {
"$ref": "#/definitions/eventTimeout"
}
},
"additionalProperties": false,
"required": []
}
]
},
"required": [
"timeouts"
],
"definitions": {
"workflowExecTimeout": {
"oneOf": [
{
"type": "string",
"description": "Workflow execution timeout duration (ISO 8601 duration format). If not specified should be 'unlimited'",
"minLength": 1
},
{
"type": "object",
"properties": {
"duration": {
"type": "string",
"description": "Workflow execution timeout duration (ISO 8601 duration format). If not specified should be 'unlimited'",
"minLength": 1
},
"interrupt": {
"type": "boolean",
"description": "If `false`, workflow instance is allowed to finish current execution. If `true`, current workflow execution is abrupted.",
"default": true
},
"runBefore": {
"type": "string",
"description": "Name of a workflow state to be executed before workflow instance is terminated",
"minLength": 1
}
},
"additionalProperties": false,
"required": [
"duration"
]
}
]
},
"stateExecTimeout": {
"type": "string",
"description": "Workflow state execution timeout duration (ISO 8601 duration format)",
"minLength": 1
},
"actionExecTimeout": {
"type": "string",
"description": "Action execution timeout duration (ISO 8601 duration format)",
"minLength": 1
},
"branchExecTimeout": {
"type": "string",
"description": "Branch execution timeout duration (ISO 8601 duration format)",
"minLength": 1
},
"eventTimeout": {
"type": "string",
"description": "Timeout duration to wait for consuming defined events (ISO 8601 duration format)",
"minLength": 1
}
}
}