diff --git a/packages/xen-api/src/index.js b/packages/xen-api/src/index.js index 49bbc5d25..d0f3446d4 100644 --- a/packages/xen-api/src/index.js +++ b/packages/xen-api/src/index.js @@ -989,6 +989,8 @@ export class Xapi extends EventEmitter { this._processEvents(result.events) // detect and fix disappearing tasks (e.g. when toolstack restarts) + // + // FIXME: only if 'task' in 'types if (result.valid_ref_counts.task !== this._nTasks) { await this._refreshCachedRecords(['task']) }