@hotmeshio/hotmesh 0.0.50 → 0.0.51

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.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "Unbreakable Workflows",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -152,7 +152,7 @@ declare abstract class StoreService<T, U extends AbstractRedisClient> {
152
152
  */
153
153
  interrupt(topic: string, jobId: string, options?: JobInterruptOptions): Promise<void>;
154
154
  scrub(jobId: string): Promise<void>;
155
- findJobs(queryString?: string, limit?: number, batchSize?: number): Promise<[string, string[]]>;
155
+ findJobs(queryString?: string, limit?: number, batchSize?: number, cursor?: string): Promise<[string, string[]]>;
156
156
  findJobFields(jobId: string, fieldMatchPattern?: string, limit?: number, batchSize?: number, cursor?: string): Promise<[string, StringStringType]>;
157
157
  }
158
158
  export { StoreService };
@@ -899,9 +899,8 @@ class StoreService {
899
899
  const jobKey = this.mintKey(key_1.KeyType.JOB_STATE, { appId: this.appId, jobId });
900
900
  await this.redisClient[this.commands.del](jobKey);
901
901
  }
902
- async findJobs(queryString = '*', limit = 1000, batchSize = 1000) {
902
+ async findJobs(queryString = '*', limit = 1000, batchSize = 1000, cursor = '0') {
903
903
  const matchKey = this.mintKey(key_1.KeyType.JOB_STATE, { appId: this.appId, jobId: queryString });
904
- let cursor = '0';
905
904
  let keys;
906
905
  const matchingKeys = [];
907
906
  do {
@@ -12,7 +12,7 @@ export { JobData, JobsData, JobMetadata, JobOutput, JobState, JobStatus, Partial
12
12
  export { MappingStatements } from './map';
13
13
  export { Pipe, PipeItem, PipeItems } from './pipe';
14
14
  export { HotMesh, HotMeshApp, HotMeshApps, HotMeshConfig, HotMeshEngine, RedisConfig, HotMeshGraph, HotMeshManifest, HotMeshSettings, HotMeshWorker, KeyStoreParams, KeyType } from './hotmesh';
15
- export { ActivateMessage, JobMessage, JobMessageCallback, PingMessage, PongMessage, QuorumMessage, QuorumMessageCallback, QuorumProfile, SubscriptionCallback, SystemHealth, ThrottleMessage, ThrottleOptions, WorkMessage } from './quorum';
15
+ export { ActivateMessage, CronMessage, JobMessage, JobMessageCallback, PingMessage, PongMessage, QuorumMessage, QuorumMessageCallback, QuorumProfile, RollCallMessage, SubscriptionCallback, SystemHealth, ThrottleMessage, ThrottleOptions, WorkMessage } from './quorum';
16
16
  export { MultiResponseFlags, RedisClient, RedisMulti } from './redis';
17
17
  export { RedisClientType, RedisMultiType } from './redisclient';
18
18
  export { JSONSchema, StringAnyType, StringScalarType, StringStringType, SymbolMap, SymbolMaps, SymbolRanges, Symbols, SymbolSets } from './serializer';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hotmeshio/hotmesh",
3
- "version": "0.0.50",
3
+ "version": "0.0.51",
4
4
  "description": "Unbreakable Workflows",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",
@@ -1028,9 +1028,8 @@ abstract class StoreService<T, U extends AbstractRedisClient> {
1028
1028
  await this.redisClient[this.commands.del](jobKey);
1029
1029
  }
1030
1030
 
1031
- async findJobs(queryString: string = '*', limit: number = 1000, batchSize: number = 1000): Promise<[string, string[]]> {
1031
+ async findJobs(queryString: string = '*', limit: number = 1000, batchSize: number = 1000, cursor = '0'): Promise<[string, string[]]> {
1032
1032
  const matchKey = this.mintKey(KeyType.JOB_STATE, { appId: this.appId, jobId: queryString });
1033
- let cursor = '0';
1034
1033
  let keys: string[];
1035
1034
  const matchingKeys: string[] = [];
1036
1035
  do {
package/types/index.ts CHANGED
@@ -107,6 +107,7 @@ export {
107
107
  KeyType } from './hotmesh';
108
108
  export {
109
109
  ActivateMessage,
110
+ CronMessage,
110
111
  JobMessage,
111
112
  JobMessageCallback,
112
113
  PingMessage,
@@ -114,6 +115,7 @@ export {
114
115
  QuorumMessage,
115
116
  QuorumMessageCallback,
116
117
  QuorumProfile,
118
+ RollCallMessage,
117
119
  SubscriptionCallback,
118
120
  SystemHealth,
119
121
  ThrottleMessage,