Protected
Readonly
deleteEmit when a registered task is deleted.
Protected
ideach task has this unique task id, for this back-end
Protected
Readonly
loggerProtected
Readonly
taskscontains all running tasks
Protected
Readonly
taskscontains 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.
Optional
ctx: 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.
Optional
ctx: stringthe provided context.
the registration id for the given task.
The TaskManager is the common component responsible for managing running tasks.