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

Function getByKey

components/runtime/src/ts/scheduled_tasks.ts:119–124  ·  view source on GitHub ↗
(namespace: string, key: string)

Source from the content-addressed store, hash-verified

117 * @deprecated Deprecated in favor of new task bucket API. See {@link Script.createTaskBucket}
118 */
119 export async function getByKey(namespace: string, key: string): Promise<ScheduledTask | undefined> {
120 const task = await OpWrappers.tasks.getTaskByKey(null, namespace, key) ?? undefined;
121 if (task) {
122 return convertInternalTask(task)
123 }
124 }
125
126 /**
127 * Paginate through all scheduled tasks, optionally filtered by namespace

Callers

nothing calls this directly

Calls 1

convertInternalTaskFunction · 0.85

Tested by

no test coverage detected