|
16 | 16 | */
|
17 | 17 |
|
18 | 18 | /**
|
19 |
| - * SettableProcessingState represents all the Processing states that can be set on an ExtensionInstance's runtimeData. |
| 19 | + * `SettableProcessingState` represents all the processing states that can be set |
| 20 | + * on an Extension instance's runtime data. |
20 | 21 | *
|
21 |
| - * - NONE: No relevant lifecycle event work has been done. Set this to clear out old statuses. |
22 |
| - * - PROCESSING_COMPLETE: Lifecycle event work completed with no errors. |
23 |
| - * - PROCESSING_WARNING: Lifecycle event work succeeded partially, |
24 |
| - * or something happened that the user should be warned about. |
25 |
| - * - PROCESSING_FAILED: Lifecycle event work failed completely, |
26 |
| - * but the instance will still work correctly going forward. |
27 |
| - * - If the extension instance is in a broken state due to the errors, instead set FatalError. |
| 22 | + * @remarks |
| 23 | + * You can set the following states: |
| 24 | + * |
| 25 | + * - `NONE`: No relevant lifecycle event work has been done. |
| 26 | + * Set this to clear out old statuses. |
| 27 | + * |
| 28 | + * - `PROCESSING_COMPLETE`: Lifecycle event work completed with no errors. |
| 29 | + * |
| 30 | + * - `PROCESSING_WARNING`: Lifecycle event work succeeded partially, or |
| 31 | + * something happened that the user should be warned about. |
| 32 | + * |
| 33 | + * - `PROCESSING_FAILED`: Lifecycle event work failed completely, but the |
| 34 | + * instance will still work correctly going forward. |
| 35 | + * |
| 36 | + * If the extension instance is in a broken state due to errors, instead call |
| 37 | + * {@link Runtime.setFatalError}. |
| 38 | + * |
| 39 | + * The "processing" state gets set automatically when a lifecycle event handler |
| 40 | + * starts; you can't set it explicitly. |
| 41 | + * To report the ongoing status of an extension's function, use `console.log` |
| 42 | + * or the Cloud Functions logger SDK. |
28 | 43 | */
|
29 | 44 | export type SettableProcessingState = 'NONE' | 'PROCESSING_COMPLETE' | 'PROCESSING_WARNING' | 'PROCESSING_FAILED';
|
0 commit comments