Protected ReadonlydeleteEmit when a registered task is deleted.
Protectedideach task has this unique task id, for this back-end
Protected ReadonlyloggerProtected Readonlytaskscontains all running tasks
Protected Readonlytaskscontains running tasks per context
Try to retrieve the registered task for the given id.
the task registration id.
the task or undefined if no task was registered for the given id.
Returns all running tasks. If a context is provided, filter-down to only tasks started from that context.
Optionalctx: stringthe task execution context.
all running tasks for the given context or undefined if no tasks are registered for the given context.
Is triggered on application stop to cleanup all ongoing tasks.
Registers a new task (in the given context if present). Each registered task is considered to be currently running.
the new task.
Optionalctx: stringthe provided context.
the registration id for the given task.
The TaskManager is the common component responsible for managing running tasks.