Closed georgejecook closed 11 months ago
We should have a mechanism for knowing how many tasks are currently running. Proposal:**
New debug flag: trackActiveTasks: boolean = false
When set to true, the framework will automatically update global.runningTasks, to maintain a count of all running tasks.
This count will be increased by one, whenever a task is created. It will be decreased when the task end execution:
global: { _m_runningTasks: { ContentTask: 5 AuthTask: 2 LoggingTask: 13 TaskThatIsCausingProblems: 57 } }
We should have a mechanism for knowing how many tasks are currently running. Proposal:**
New debug flag: trackActiveTasks: boolean = false
When set to true, the framework will automatically update global.runningTasks, to maintain a count of all running tasks.
This count will be increased by one, whenever a task is created. It will be decreased when the task end execution:
global: { _m_runningTasks: { ContentTask: 5 AuthTask: 2 LoggingTask: 13 TaskThatIsCausingProblems: 57 } }