Commit 8039e02
Allow specifying failure policies (#482)
* Define an interface for FailurePolicy
* Extract functions config to avoid dependency cycles, assign failure policy to triggers
* Add a changelog entry
* Update dependencies, minor version bump
* Reformat
* Fix a typo: allows -> allow
* Avoid abbreviations to improve readability
* Rename remaining Opts to Options
* Add tests for specifying failure policy
* Reformat
* Change format of an entry in the changelog
* Revert version bump
* Extract configuration to break dependency cycle
* Add comments to Schedule and ScheduleRetryConfig
* Stricten regions definition
* Fix tests broken due to strict typings
* More strict types for regions - reverse order
* Reformat
* Remove unused import
* Conform with npm formatting
* Reintroduce unused variable to minimize diff size
* Import lodash using _ exclusively
* Kepp @hidden tags in one line if no other JSDoc is present
* Fix a typo - sentence ending with a comma
* Wrap JSDoc as specified in Google JavaScript Style Guide
* Move memory lookup table to functions-configuration and stricten type definition
* Move default failure policy to functions-configuration
* Separate standarization of options from construction of the options object
* Rephrase failure policy description
* Rephrase description of memory and timeoutSeconds options
* Simplify tests for invalid failure policies
* Align public description of failure policies with a documentation of its interface
* Add a missing dot in the Changelog
* Minor stylistic changes to the documentation
* Make a test case more understandable
* Reformat1 parent edcb35d commit 8039e02
File tree
6 files changed
+212
-82
lines changed- spec
- providers
- src
6 files changed
+212
-82
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
79 | 79 | | |
80 | 80 | | |
81 | 81 | | |
82 | | - | |
| 82 | + | |
83 | 83 | | |
| 84 | + | |
84 | 85 | | |
85 | 86 | | |
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
90 | 105 | | |
91 | 106 | | |
92 | 107 | | |
| |||
132 | 147 | | |
133 | 148 | | |
134 | 149 | | |
135 | | - | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
136 | 170 | | |
137 | 171 | | |
138 | 172 | | |
| |||
154 | 188 | | |
155 | 189 | | |
156 | 190 | | |
157 | | - | |
| 191 | + | |
158 | 192 | | |
159 | 193 | | |
160 | 194 | | |
161 | 195 | | |
162 | 196 | | |
163 | | - | |
| 197 | + | |
164 | 198 | | |
165 | 199 | | |
166 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
197 | 197 | | |
198 | 198 | | |
199 | 199 | | |
200 | | - | |
201 | | - | |
202 | | - | |
| 200 | + | |
203 | 201 | | |
204 | 202 | | |
205 | 203 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
22 | 22 | | |
23 | 23 | | |
24 | 24 | | |
25 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
26 | 32 | | |
27 | 33 | | |
28 | 34 | | |
| |||
202 | 208 | | |
203 | 209 | | |
204 | 210 | | |
| 211 | + | |
205 | 212 | | |
206 | 213 | | |
207 | 214 | | |
| |||
216 | 223 | | |
217 | 224 | | |
218 | 225 | | |
219 | | - | |
| 226 | + | |
| 227 | + | |
220 | 228 | | |
221 | 229 | | |
222 | 230 | | |
223 | 231 | | |
224 | 232 | | |
225 | 233 | | |
226 | 234 | | |
| 235 | + | |
227 | 236 | | |
228 | 237 | | |
229 | 238 | | |
| |||
253 | 262 | | |
254 | 263 | | |
255 | 264 | | |
| 265 | + | |
256 | 266 | | |
257 | 267 | | |
258 | 268 | | |
| |||
312 | 322 | | |
313 | 323 | | |
314 | 324 | | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
| 349 | + | |
| 350 | + | |
| 351 | + | |
| 352 | + | |
| 353 | + | |
| 354 | + | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
315 | 359 | | |
316 | 360 | | |
317 | 361 | | |
| |||
463 | 507 | | |
464 | 508 | | |
465 | 509 | | |
466 | | - | |
467 | | - | |
468 | | - | |
469 | | - | |
470 | | - | |
471 | | - | |
472 | | - | |
473 | | - | |
474 | | - | |
475 | | - | |
476 | | - | |
477 | | - | |
478 | | - | |
479 | | - | |
480 | | - | |
481 | | - | |
482 | | - | |
483 | | - | |
484 | | - | |
485 | | - | |
486 | | - | |
487 | | - | |
488 | | - | |
489 | | - | |
490 | | - | |
| |||
0 commit comments