from django_celery_results.models import TaskResult
from pprint import pprint
# get tasks by recency
= TaskResult.objects.order_by('-date_created')[:5]
task_result for i in task_result:
vars(i))
pprint(
# get failed tasks
= TaskResult.objects.filter(status='FAILURE').order_by('date_done')[:10]
task_result for i in task_result:
vars(i)) pprint(