Jan Dittberner
4af1a39ca4
- update dependencies - fix deprecation warnings - fix tests - skip some tests that need more work - reformat changed code with isort and black
18 lines
520 B
Python
18 lines
520 B
Python
"""
|
|
This model contains the implementation of a management command to fetch the
|
|
results of all `Celery <http://www.celeryproject.org/>`_ tasks that are not
|
|
marked as finished yet.
|
|
|
|
"""
|
|
from django.core.management.base import BaseCommand
|
|
|
|
from taskresults.models import TaskResult
|
|
|
|
|
|
class Command(BaseCommand):
|
|
help = "fetch task results"
|
|
|
|
def handle(self, *args, **options):
|
|
for taskresult in TaskResult.objects.filter(finished=False):
|
|
taskresult.fetch_result()
|
|
taskresult.save()
|