forked from RedisGears/RedisGears
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commands.json
236 lines (236 loc) · 5.97 KB
/
commands.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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
{
"RG.PYEXECUTE": {
"summary": "The RG.PYEXECUTE command executes a Python function.",
"complexity": [
"Depends on what the python code does"
],
"arguments": [
{
"name": "function",
"type": "string"
},
{
"name": "UNBLOCKING",
"type": "enum",
"enum": [
"UNBLOCKING"
],
"optional": true
},
{
"name": "REQUIREMENTS",
"optional": true,
"multiple": true,
"type": "block",
"block": [
{
"name": "requirement"
},
{
"type": "string"
}
]
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.ABORTEXECUTION": {
"summary": "The RG.ABORTEXECUTION command aborts the execution of a function in mid-flight.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "id",
"type": "string"
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.CONFIGGET": {
"summary": "The RG.CONFIGGET command returns the value of one or more built-in configuration or a user-defined options.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "key",
"type": "string",
"multiple": true
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.CONFIGSET": {
"summary": "The RG.CONFIGGET command sets the value of one ore more built-in configuration or a user-defined options.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "key value pair",
"type": "block",
"multiple": true,
"block": [
{
"name": "requirement"
},
{
"type": "string"
}
]
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.DROPEXECUTION": {
"summary": "The RG.DROPEXECUTION command removes the execution of a function from the executions list.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "id",
"type": "string"
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.DUMPEXECUTIONS": {
"summary": "The RG.DUMPEXECUTIONS command outputs the list of function executions. The executions list's length is capped by the MaxExecutions configuration option.",
"complexity": [
"O(n) where n is the number of executions returned"
],
"since": "1.0.0",
"group": "gears"
},
"RG.DUMPREGISTRATIONS": {
"summary": "The RG.DUMPREGISTRATIONS command outputs the list of function registrations.",
"complexity": [
"O(n) where n is the number of registrations returned"
],
"since": "1.0.0",
"group": "gears"
},
"RG.GETEXECUTION": {
"summary": "The RG.GETEXECUTION command returns the execution details of a function that's in the executions list.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "id",
"type": "string"
},
{
"name": "mode",
"type": "enum",
"enum": [
"SHARD",
"CLUSTER"
],
"optional": true
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.GETRESULTS": {
"summary": "The RG.GETRESULTS command returns the results and errors from of the execution execution details of a function that's in the executions list.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "id",
"type": "string"
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.GETRESULTSBLOCKING": {
"summary": "The RG.GETRESULTSBLOCKING command cancels the UNBLOCKING argument of the RG.PYEXECUTE command. The calling client is blocked until execution ends and is sent with any results and errors then.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "id",
"type": "string"
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.INFOCLUSTER": {
"summary": "The RG.INFOCLUSTER command outputs information about the cluster.",
"complexity": [
"O(1)"
],
"since": "1.0.0",
"group": "gears"
},
"RG.PYSTATS": {
"summary": "The RG.PYSTATS command returns memory usage statistics from the Python interpreter.",
"complexity": [
"O(1)"
],
"since": "1.0.0",
"group": "gears"
},
"RG.PYDUMPREQS": {
"summary": "The RG.PYDUMPREQS command returns a list of all the python requirements available (with information about each requirement).",
"complexity": [
"O(n) when n is the number of requirements"
],
"since": "1.0.1",
"group": "gears"
},
"RG.REFRESHCLUSTER": {
"summary": "The RG.REFRESHCLUSTER command refreshes the node's view of the cluster's topology.",
"complexity": [
"O(1)"
],
"since": "1.0.0",
"group": "gears"
},
"RG.TRIGGER": {
"summary": "The RG.TRIGGER command triggers the execution of a registered CommandReader function.",
"complexity": [
"Depends on the function triggered"
],
"arguments": [
{
"name": "trigger",
"type": "string"
},
{
"name": "argument",
"type": "string",
"multiple": true
}
],
"since": "1.0.0",
"group": "gears"
},
"RG.UNREGISTER": {
"summary": "The RG.UNREGISTER command removes the registration of a function.",
"complexity": [
"O(1)"
],
"arguments": [
{
"name": "id",
"type": "string"
}
],
"since": "1.0.0",
"group": "gears"
}
}