(namespace: string, key: string)
| 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 |
nothing calls this directly
no test coverage detected