@io-orkes/conductor-javascript 1.2.1-rc.2 → 1.2.1-rc.3

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.
@@ -1690,6 +1690,7 @@ interface ConductorWorker {
1690
1690
  execute: (task: Task) => Promise<Omit<TaskResult, "workflowInstanceId" | "taskId">>;
1691
1691
  domain?: string;
1692
1692
  concurrency?: number;
1693
+ pollInterval?: number;
1693
1694
  }
1694
1695
 
1695
1696
  declare type TaskErrorHandler = (error: Error, task?: Task) => void;
@@ -1698,11 +1699,12 @@ interface TaskRunnerOptions {
1698
1699
  domain: string | undefined;
1699
1700
  pollInterval?: number;
1700
1701
  concurrency?: number;
1702
+ batchPollingTimeout?: number;
1701
1703
  }
1702
1704
  interface RunnerArgs {
1703
1705
  worker: ConductorWorker;
1704
1706
  taskResource: TaskResourceService;
1705
- options: Required<TaskRunnerOptions>;
1707
+ options: TaskRunnerOptions;
1706
1708
  logger?: ConductorLogger;
1707
1709
  onError?: TaskErrorHandler;
1708
1710
  concurrency?: number;
@@ -1752,7 +1754,7 @@ interface TaskManagerConfig {
1752
1754
  * Responsible for initializing and managing the runners that poll and work different task queues.
1753
1755
  */
1754
1756
  declare class TaskManager {
1755
- private tasks;
1757
+ private workerRunners;
1756
1758
  private readonly client;
1757
1759
  private readonly logger;
1758
1760
  private readonly errorHandler;
@@ -1762,11 +1764,13 @@ declare class TaskManager {
1762
1764
  constructor(client: ConductorClient, workers: Array<ConductorWorker>, config?: TaskManagerConfig);
1763
1765
  private workerManagerWorkerOptions;
1764
1766
  get isPolling(): boolean;
1767
+ updatePollingOptionForWorker: (workerTaskDefName: string, options: Partial<TaskManagerOptions>) => void;
1765
1768
  /**
1766
1769
  * new options will get merged to existing options
1767
1770
  * @param options new options to update polling options
1768
1771
  */
1769
1772
  updatePollingOptions: (options: Partial<TaskManagerOptions>) => void;
1773
+ sanityCheck: () => void;
1770
1774
  /**
1771
1775
  * Start polling for tasks
1772
1776
  */
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@io-orkes/conductor-javascript",
3
3
  "description": "Typescript Client for Netflix Conductor",
4
- "version": "1.2.1-rc.2",
4
+ "version": "1.2.1-rc.3",
5
5
  "exports": {
6
6
  ".": {
7
7
  "require": "./dist/index.js",