MCPcopy Index your code
hub / github.com/bee-queue/bee-queue / destroy

Method destroy

lib/queue.js:276–297  ·  view source on GitHub ↗
(cb)

Source from the content-addressed store, hash-verified

274 }
275
276 destroy(cb) {
277 const promise = this._commandable().then((client) => {
278 const deleted = helpers.deferred();
279 const args = [
280 'id',
281 'jobs',
282 'stallBlock',
283 'stalling',
284 'waiting',
285 'active',
286 'succeeded',
287 'failed',
288 'delayed',
289 ].map((key) => this.toKey(key));
290 args.push(deleted.defer());
291 client.del.apply(client, args);
292 return deleted;
293 });
294
295 if (cb) helpers.asCallback(promise, cb);
296 return promise;
297 }
298
299 checkHealth(cb) {
300 const promise = this._commandable()

Callers 1

queue-test.jsFile · 0.80

Calls 2

_commandableMethod · 0.95
toKeyMethod · 0.95

Tested by

no test coverage detected