Celery stats for active, pending and done tasks.

can we make this function non-side effecting, as in, return a new task with the attributes added