get `celery` ran tasks

from django_celery_results.models import TaskResult
from pprint import pprint

# get tasks by recency
task_result = TaskResult.objects.order_by('-date_created')[:5]
for i in task_result:
    pprint(vars(i))

# get failed tasks
task_result = TaskResult.objects.filter(status='FAILURE').order_by('date_done')[:10]
for i in task_result:
    pprint(vars(i))