add a getTasks method to get multiple tasks through 1 DB query

Signed-off-by: Kashish Mittal <kmittal@redhat.com>
This commit is contained in:
Kashish Mittal
2025-04-25 11:52:24 -04:00
parent fe85d897d5
commit 63a8d8e171
7 changed files with 55 additions and 20 deletions
+2
View File
@@ -361,6 +361,8 @@ export interface TaskBroker {
// (undocumented)
get(taskId: string): Promise<SerializedTask>;
// (undocumented)
getTasks(taskIds: string[]): Promise<SerializedTask[]>;
// (undocumented)
list?(options?: {
filters?: {
createdBy?: string | string[];
@@ -204,6 +204,8 @@ export interface TaskBroker {
get(taskId: string): Promise<SerializedTask>;
getTasks(taskIds: string[]): Promise<SerializedTask[]>;
list?(options?: {
filters?: {
createdBy?: string | string[];