* Retrieve a task by its unique key * * @returns Either the task if found, or undefined
(key: string)
| 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 |
no test coverage detected