You can probably access old tasks using:
CELERY_RESULT_BACKEND = "database"
and in your code:
from djcelery.models import TaskMeta task = TaskMeta.objects.filter(task_id='af3185c9-4174-4bca-0101-860ce6621234')[0]
but I'm not sure if you can find the arguments that this task starts with ... Maybe something with TaskState ...
I have never used it that way. But can you consider the task.retry function? Example from celery docs:
@task() def task(*args): try: some_work() except SomeException, exc:
Tisho source share