Implementation of celery stats for active, pending and done tasks.