fix process active tasks for custom task_cls