MCPcopy Create free account
hub / github.com/Botloader/botloader / getByKey

Method getByKey

components/runtime/src/ts/scheduled_tasks.ts:274–279  ·  view source on GitHub ↗

* Retrieve a task by its unique key * * @returns Either the task if found, or undefined

(key: string)

Source from the content-addressed store, hash-verified

272 * @returns Either the task if found, or undefined
273 */
274 async getByKey(key: string): Promise<Task<T> | undefined> {
275 const task = await OpWrappers.tasks.getTaskByKey(this.pluginId, this.name, key) ?? undefined;
276 if (task) {
277 return convertInternalTask(task)
278 }
279 }
280
281 /**
282 * Paginate through all scheduled tasks in this bucket

Callers 2

testGetKeyFunction · 0.80
testGetDelKeysFunction · 0.80

Calls 1

convertInternalTaskFunction · 0.85

Tested by

no test coverage detected