@tasker-systems/tasker 0.1.8 → 0.1.9
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/dist/index.js +16 -0
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/tasker_ts.darwin-arm64.node +0 -0
- package/tasker_ts.linux-x64-gnu.node +0 -0
package/dist/index.js
CHANGED
|
@@ -3467,6 +3467,22 @@ var BatchableMixin = class {
|
|
|
3467
3467
|
* @returns BatchWorkerContext or null if not found
|
|
3468
3468
|
*/
|
|
3469
3469
|
getBatchContext(context) {
|
|
3470
|
+
if (context.stepInputs && "cursor" in context.stepInputs) {
|
|
3471
|
+
const cursorData = context.stepInputs.cursor ?? {};
|
|
3472
|
+
const batchData2 = {
|
|
3473
|
+
batch_id: cursorData.batch_id,
|
|
3474
|
+
cursor_config: {
|
|
3475
|
+
start_cursor: cursorData.start_cursor,
|
|
3476
|
+
end_cursor: cursorData.end_cursor,
|
|
3477
|
+
step_size: cursorData.step_size ?? cursorData.batch_size ?? 1,
|
|
3478
|
+
metadata: cursorData.metadata ?? {}
|
|
3479
|
+
},
|
|
3480
|
+
batch_index: 0,
|
|
3481
|
+
total_batches: 1,
|
|
3482
|
+
batch_metadata: context.stepInputs.batch_metadata ?? {}
|
|
3483
|
+
};
|
|
3484
|
+
return createBatchWorkerContext(batchData2);
|
|
3485
|
+
}
|
|
3470
3486
|
let batchData;
|
|
3471
3487
|
if (context.stepConfig) {
|
|
3472
3488
|
batchData = context.stepConfig.batch_context;
|