@flowcore/data-pump 0.3.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +8 -0
- package/esm/data-pump/data-pump.d.ts.map +1 -1
- package/esm/data-pump/data-pump.js +7 -7
- package/esm/data-pump/notifier.d.ts.map +1 -1
- package/esm/data-pump/notifier.js +2 -1
- package/package.json +1 -1
- package/script/data-pump/data-pump.d.ts.map +1 -1
- package/script/data-pump/data-pump.js +7 -7
- package/script/data-pump/notifier.d.ts.map +1 -1
- package/script/data-pump/notifier.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.3.1](https://github.com/flowcore-io/data-pump/compare/v0.3.0...v0.3.1) (2025-03-20)
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
### Bug Fixes
|
|
7
|
+
|
|
8
|
+
* fix stopat ([6586132](https://github.com/flowcore-io/data-pump/commit/6586132e920cdd68b8450c4bb631fef394a284f6))
|
|
9
|
+
* fix stopat ([fabb15d](https://github.com/flowcore-io/data-pump/commit/fabb15d616c34340ef4928fa7a1828bc57b8cdd0))
|
|
10
|
+
|
|
3
11
|
## [0.3.0](https://github.com/flowcore-io/data-pump/compare/v0.2.1...v0.3.0) (2025-03-19)
|
|
4
12
|
|
|
5
13
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-pump.d.ts","sourceRoot":"","sources":["../../src/data-pump/data-pump.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAA;AAMnF,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,cAAc,EACf,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,oBAAoB,CAAA;I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,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC;IAoCjD,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE;YA0B7B,MAAM;YAgDN,WAAW;IAiBzB,OAAO,CAAC,mBAAmB;IA4D3B,OAAO,CAAC,iBAAiB;IA0CzB,OAAO,CAAC,YAAY,CAAC,CAAY;YACnB,aAAa;IAO3B,OAAO,CAAC,qBAAqB,CAAC,CAAY;YAC5B,sBAAsB;IAOpC,OAAO,CAAC,iBAAiB,CAAC,CAAY;YACxB,kBAAkB;CAQjC"}
|
|
@@ -136,7 +136,7 @@ export class FlowcoreDataPump {
|
|
|
136
136
|
};
|
|
137
137
|
if (this.options.stopAt) {
|
|
138
138
|
this.stopAtState = {
|
|
139
|
-
timeBucket: (await this.dataSource.getClosestTimeBucket(format(startOfHour(utc(this.options.stopAt)), "yyyyMMddHH0000"))) ?? format(startOfHour(utc(new Date())), "yyyyMMddHH0000"),
|
|
139
|
+
timeBucket: (await this.dataSource.getClosestTimeBucket(format(startOfHour(utc(this.options.stopAt)), "yyyyMMddHH0000"), true)) ?? format(startOfHour(utc(new Date())), "yyyyMMddHH0000"),
|
|
140
140
|
eventId: TimeUuid.fromDate(this.options.stopAt).toString(),
|
|
141
141
|
};
|
|
142
142
|
}
|
|
@@ -184,12 +184,6 @@ export class FlowcoreDataPump {
|
|
|
184
184
|
}
|
|
185
185
|
async loop() {
|
|
186
186
|
do {
|
|
187
|
-
if (this.bufferState.timeBucket === this.stopAtState?.timeBucket) {
|
|
188
|
-
this.logger?.info("Stopping at stopAt state");
|
|
189
|
-
await this.waitForBufferEmpty();
|
|
190
|
-
this.stop();
|
|
191
|
-
break;
|
|
192
|
-
}
|
|
193
187
|
const amountToFetch = this.options.bufferSize - this.buffer.length;
|
|
194
188
|
if (amountToFetch <= 0) {
|
|
195
189
|
this.logger?.info("Buffer is full, waiting for space");
|
|
@@ -204,6 +198,12 @@ export class FlowcoreDataPump {
|
|
|
204
198
|
this.logger?.debug(`fetched ${events.length} events`);
|
|
205
199
|
this.buffer.push(...events.map((event) => ({ event, status: "open", deliveryCount: 0 })));
|
|
206
200
|
this.updateMetricsGauges();
|
|
201
|
+
if (this.stopAtState?.timeBucket && this.bufferState.timeBucket >= this.stopAtState.timeBucket) {
|
|
202
|
+
this.logger?.info("Stopping at stopAt state");
|
|
203
|
+
await this.waitForBufferEmpty();
|
|
204
|
+
this.stop();
|
|
205
|
+
break;
|
|
206
|
+
}
|
|
207
207
|
events.length && this.waiterEvents?.();
|
|
208
208
|
this.bufferState.eventId = events[events.length - 1]?.eventId ?? this.bufferState.eventId;
|
|
209
209
|
if (events.length !== amountToFetch) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["../../src/data-pump/notifier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["../../src/data-pump/notifier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAKlG,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,UAAU,EAAE,0BAA0B,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB;AAED,qBAAa,gBAAgB;IASf,OAAO,CAAC,QAAQ,CAAC,OAAO;IARpC,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,IAAI,CAAC,CAAqB;IAClC,OAAO,CAAC,OAAO,CAAC,CAA4B;IAC5C,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAC/C,OAAO,CAAC,aAAa,CAAC,CAAY;IAElC,OAAO,CAAC,KAAK,CAAC,CAAK;gBAEU,OAAO,EAAE,uBAAuB;IAOtD,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW;YAOlB,QAAQ;IAuCtB,OAAO,CAAC,gBAAgB;YAMV,aAAa;IAmC3B,OAAO,CAAC,aAAa;CAgBtB"}
|
|
@@ -2,6 +2,7 @@ import { NotificationClient } from "../deps/jsr.io/@flowcore/sdk/1.19.1/src/mod.
|
|
|
2
2
|
import * as Nats from "nats";
|
|
3
3
|
import { Subject } from "rxjs";
|
|
4
4
|
import { FlowcoreDataSource } from "./data-source.js";
|
|
5
|
+
import { noOpLogger } from "../lib/data-pump-create.js";
|
|
5
6
|
const DEFAULT_TIMEOUT_MS = 20_000;
|
|
6
7
|
export class FlowcoreNotifier {
|
|
7
8
|
constructor(options) {
|
|
@@ -106,7 +107,7 @@ export class FlowcoreNotifier {
|
|
|
106
107
|
dataCore: this.dataSource.dataCore,
|
|
107
108
|
flowType: this.dataSource.flowType,
|
|
108
109
|
}, {
|
|
109
|
-
logger: this.options.logger,
|
|
110
|
+
logger: this.options.logger ?? noOpLogger,
|
|
110
111
|
reconnectInterval: 1000,
|
|
111
112
|
});
|
|
112
113
|
await this.notificationClient.connect();
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"data-pump.d.ts","sourceRoot":"","sources":["../../src/data-pump/data-pump.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAA;AAMnF,OAAO,KAAK,EACV,oBAAoB,EACpB,0BAA0B,EAC1B,yBAAyB,EACzB,qBAAqB,EACrB,4BAA4B,EAC5B,cAAc,EACf,MAAM,YAAY,CAAA;AAEnB,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,UAAU,EAAE,0BAA0B,CAAA;IACtC,YAAY,EAAE,4BAA4B,CAAA;IAC1C,UAAU,CAAC,EAAE,MAAM,CAAA;IAC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B7B,MAAM;YAgDN,WAAW;IAiBzB,OAAO,CAAC,mBAAmB;IA4D3B,OAAO,CAAC,iBAAiB;IA0CzB,OAAO,CAAC,YAAY,CAAC,CAAY;YACnB,aAAa;IAO3B,OAAO,CAAC,qBAAqB,CAAC,CAAY;YAC5B,sBAAsB;IAOpC,OAAO,CAAC,iBAAiB,CAAC,CAAY;YACxB,kBAAkB;CAQjC"}
|
|
@@ -139,7 +139,7 @@ class FlowcoreDataPump {
|
|
|
139
139
|
};
|
|
140
140
|
if (this.options.stopAt) {
|
|
141
141
|
this.stopAtState = {
|
|
142
|
-
timeBucket: (await this.dataSource.getClosestTimeBucket((0, date_fns_1.format)((0, date_fns_1.startOfHour)((0, utc_1.utc)(this.options.stopAt)), "yyyyMMddHH0000"))) ?? (0, date_fns_1.format)((0, date_fns_1.startOfHour)((0, utc_1.utc)(new Date())), "yyyyMMddHH0000"),
|
|
142
|
+
timeBucket: (await this.dataSource.getClosestTimeBucket((0, date_fns_1.format)((0, date_fns_1.startOfHour)((0, utc_1.utc)(this.options.stopAt)), "yyyyMMddHH0000"), true)) ?? (0, date_fns_1.format)((0, date_fns_1.startOfHour)((0, utc_1.utc)(new Date())), "yyyyMMddHH0000"),
|
|
143
143
|
eventId: mod_js_1.TimeUuid.fromDate(this.options.stopAt).toString(),
|
|
144
144
|
};
|
|
145
145
|
}
|
|
@@ -187,12 +187,6 @@ class FlowcoreDataPump {
|
|
|
187
187
|
}
|
|
188
188
|
async loop() {
|
|
189
189
|
do {
|
|
190
|
-
if (this.bufferState.timeBucket === this.stopAtState?.timeBucket) {
|
|
191
|
-
this.logger?.info("Stopping at stopAt state");
|
|
192
|
-
await this.waitForBufferEmpty();
|
|
193
|
-
this.stop();
|
|
194
|
-
break;
|
|
195
|
-
}
|
|
196
190
|
const amountToFetch = this.options.bufferSize - this.buffer.length;
|
|
197
191
|
if (amountToFetch <= 0) {
|
|
198
192
|
this.logger?.info("Buffer is full, waiting for space");
|
|
@@ -207,6 +201,12 @@ class FlowcoreDataPump {
|
|
|
207
201
|
this.logger?.debug(`fetched ${events.length} events`);
|
|
208
202
|
this.buffer.push(...events.map((event) => ({ event, status: "open", deliveryCount: 0 })));
|
|
209
203
|
this.updateMetricsGauges();
|
|
204
|
+
if (this.stopAtState?.timeBucket && this.bufferState.timeBucket >= this.stopAtState.timeBucket) {
|
|
205
|
+
this.logger?.info("Stopping at stopAt state");
|
|
206
|
+
await this.waitForBufferEmpty();
|
|
207
|
+
this.stop();
|
|
208
|
+
break;
|
|
209
|
+
}
|
|
210
210
|
events.length && this.waiterEvents?.();
|
|
211
211
|
this.bufferState.eventId = events[events.length - 1]?.eventId ?? this.bufferState.eventId;
|
|
212
212
|
if (events.length !== amountToFetch) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["../../src/data-pump/notifier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;
|
|
1
|
+
{"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["../../src/data-pump/notifier.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,oBAAoB,EAAE,0BAA0B,EAAE,cAAc,EAAE,MAAM,YAAY,CAAA;AAKlG,MAAM,WAAW,uBAAuB;IACtC,IAAI,EAAE,oBAAoB,CAAA;IAC1B,UAAU,EAAE,0BAA0B,CAAA;IACtC,WAAW,CAAC,EAAE,MAAM,EAAE,CAAA;IACtB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,CAAC,EAAE,cAAc,CAAA;CACxB;AAED,qBAAa,gBAAgB;IASf,OAAO,CAAC,QAAQ,CAAC,OAAO;IARpC,OAAO,CAAC,UAAU,CAAoB;IACtC,OAAO,CAAC,IAAI,CAAC,CAAqB;IAClC,OAAO,CAAC,OAAO,CAAC,CAA4B;IAC5C,OAAO,CAAC,kBAAkB,CAAC,CAAoB;IAC/C,OAAO,CAAC,aAAa,CAAC,CAAY;IAElC,OAAO,CAAC,KAAK,CAAC,CAAK;gBAEU,OAAO,EAAE,uBAAuB;IAOtD,IAAI,CAAC,MAAM,CAAC,EAAE,WAAW;YAOlB,QAAQ;IAuCtB,OAAO,CAAC,gBAAgB;YAMV,aAAa;IAmC3B,OAAO,CAAC,aAAa;CAgBtB"}
|
|
@@ -28,6 +28,7 @@ const mod_js_1 = require("../deps/jsr.io/@flowcore/sdk/1.19.1/src/mod.js");
|
|
|
28
28
|
const Nats = __importStar(require("nats"));
|
|
29
29
|
const rxjs_1 = require("rxjs");
|
|
30
30
|
const data_source_js_1 = require("./data-source.js");
|
|
31
|
+
const data_pump_create_js_1 = require("../lib/data-pump-create.js");
|
|
31
32
|
const DEFAULT_TIMEOUT_MS = 20_000;
|
|
32
33
|
class FlowcoreNotifier {
|
|
33
34
|
constructor(options) {
|
|
@@ -132,7 +133,7 @@ class FlowcoreNotifier {
|
|
|
132
133
|
dataCore: this.dataSource.dataCore,
|
|
133
134
|
flowType: this.dataSource.flowType,
|
|
134
135
|
}, {
|
|
135
|
-
logger: this.options.logger,
|
|
136
|
+
logger: this.options.logger ?? data_pump_create_js_1.noOpLogger,
|
|
136
137
|
reconnectInterval: 1000,
|
|
137
138
|
});
|
|
138
139
|
await this.notificationClient.connect();
|