diff options
author | Sebastian <sebasjm@gmail.com> | 2024-02-28 22:41:41 -0300 |
---|---|---|
committer | Sebastian <sebasjm@gmail.com> | 2024-02-28 22:41:41 -0300 |
commit | 74b9ee559fc57f48a591140eb342cc8e2bbd3dd3 (patch) | |
tree | c26fb1cf465edc41ba625ce790eed2c71f308f77 /packages/taler-wallet-core/src/shepherd.ts | |
parent | 83c5a50f6c95a9ddde0db6ae1eeb6039550375e5 (diff) | |
download | wallet-core-74b9ee559fc57f48a591140eb342cc8e2bbd3dd3.tar.gz wallet-core-74b9ee559fc57f48a591140eb342cc8e2bbd3dd3.tar.bz2 wallet-core-74b9ee559fc57f48a591140eb342cc8e2bbd3dd3.zip |
get activity
Diffstat (limited to 'packages/taler-wallet-core/src/shepherd.ts')
-rw-r--r-- | packages/taler-wallet-core/src/shepherd.ts | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/taler-wallet-core/src/shepherd.ts b/packages/taler-wallet-core/src/shepherd.ts index 8fdf2b66b..6f2b2fa44 100644 --- a/packages/taler-wallet-core/src/shepherd.ts +++ b/packages/taler-wallet-core/src/shepherd.ts @@ -148,6 +148,7 @@ export interface TaskScheduler { stopShepherdTask(taskId: TaskIdStr): void; resetTaskRetries(taskId: TaskIdStr): Promise<void>; reload(): void; + getActiveTasks(): TaskIdStr[]; } export class TaskSchedulerImpl implements TaskScheduler { @@ -171,6 +172,10 @@ export class TaskSchedulerImpl implements TaskScheduler { } } + getActiveTasks(): TaskIdStr[] { + return [...this.sheps.keys()] + } + ensureRunning(): void { if (this.isRunning) { return; @@ -932,7 +937,7 @@ export function listTaskForTransactionId(transactionId: string): TaskIdStr[] { * Convert the task ID for a task that processes a transaction int * the ID for the transaction. */ -function convertTaskToTransactionId( +export function convertTaskToTransactionId( taskId: string, ): TransactionIdStr | undefined { const parsedTaskId = parseTaskIdentifier(taskId); |