MCPcopy
hub / github.com/immich-app/immich / push

Method push

packages/cli/src/queue.ts:86–91  ·  view source on GitHub ↗

* Add a task at the end of the queue. * @see https://www.npmjs.com/package/fastq * @param data * @returns Promise - A Promise that will be fulfilled (rejected) when the task is completed successfully (unsuccessfully). * This promise could be ignored as it will not lead to a

(data: T)

Source from the content-addressed store, hash-verified

84 * This promise could be ignored as it will not lead to a `unhandledRejection`.
85 */
86 async push(data: T): Promise<Task<T, R>> {
87 const id = uniqueId();
88 const task: Task<T, R> = { id, status: 'idle', error: undefined, count: 0, data, result: undefined };
89 this.store.set(id, task);
90 return this.queue.push(id);
91 }
92
93 // TODO: Support more function delegation to fastq.
94

Callers 15

checkForDuplicatesFunction · 0.95
uploadFilesFunction · 0.95
tasksMethod · 0.45
requirePermissionsFunction · 0.45
crawlFunction · 0.45
addMethod · 0.45
startWatchFunction · 0.45
updateAlbumsFunction · 0.45
index.tsFile · 0.45
configurePostCssFunction · 0.45
useActionsFunction · 0.45
toModalRowsMethod · 0.45

Calls 1

setMethod · 0.80

Tested by 2

normalizedToEditsFunction · 0.36
getAssetsFunction · 0.36