<filename>cacheback/tasks.py
from celery import shared_task
from django.conf import settings


@shared_task(ignore_result=getattr(settings, 'CACHEBACK_TASK_IGNORE_RESULT', False))
def refresh_cache(klass_str, obj_args, obj_kwargs, call_args, call_kwargs):
    from .base import Job

    Job.perform_async_refresh(klass_str, obj_args, obj_kwargs, call_args, call_kwargs)

<filename>cacheback/tasks.py
from celery import shared_task
from django.conf import settings


@shared_task(ignore_result=getattr(settings, 'CACHEBACK_TASK_IGNORE_RESULT', False))
def refresh_cache(klass_str, obj_args, obj_kwargs, call_args, call_kwargs):
    from .base import Job

    Job.perform_async_refresh(klass_str, obj_args, obj_kwargs, call_args, call_kwargs)
