We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d4bbc5b commit b9ecd58Copy full SHA for b9ecd58
lib/spark.js
@@ -4,17 +4,20 @@ const sleep = dt => new Promise(resolve => setTimeout(resolve, dt))
4
5
// Create activity events when we bacome operational or fail, but only once
6
export class ActivityState {
7
- #ok = true
+ #ok = null
8
9
onError () {
10
- if (this.#ok) {
+ if (this.#ok === null || this.#ok) {
11
this.#ok = false
12
Zinnia.activity.error('SPARK failed reporting retrieval')
13
}
14
15
16
onSuccess () {
17
- if (!this.#ok) {
+ if (this.#ok === null) {
18
+ this.#ok = true
19
+ Zinnia.activity.info('SPARK started reporting retrievals')
20
+ } else if (!this.#ok) {
21
this.#ok = true
22
Zinnia.activity.info('SPARK retrieval reporting resumed')
23
0 commit comments