@cloudnux/local-cloud-provider 0.16.0 → 0.18.0

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.
@@ -46,9 +46,9 @@ interface JobDefinition {
46
46
  }
47
47
  interface SchedulerConfig {
48
48
  persistence: {
49
- enabled: boolean;
49
+ enabled?: boolean;
50
50
  directory: string;
51
- saveInterval: number;
51
+ saveInterval?: number;
52
52
  };
53
53
  execution: {
54
54
  maxConcurrent: number;
@@ -1669,7 +1669,7 @@ var initializeScheduler = async (state, scheduleJobFn) => {
1669
1669
  state.schedulers = schedulers;
1670
1670
  state.executionHistory = executionHistory;
1671
1671
  }
1672
- const tickInterval = state.config.persistence.saveInterval > 0 ? state.config.persistence.saveInterval : state.config.cleanup.cleanupInterval;
1672
+ const tickInterval = (state.config.persistence.saveInterval || 0) > 0 ? state.config.persistence.saveInterval : state.config.cleanup.cleanupInterval;
1673
1673
  state.tickInterval = setInterval(async () => {
1674
1674
  if (state.isDirty && state.config.persistence.enabled) {
1675
1675
  state.isDirty = false;