I need to call a celery task (in tasks.py) from models.py, the only problem is, tasks.py imports models.py, so I can't import tasks.py from models.py.
Is there some way to call a celery task simply using its name, without having to import it? A similar thing is implemented for ForeignKey fields for the same reason (preventing circular imports).
celery.execute.send_task('mod.task_func', [arg1, arg2], {kwarg: kwvalue})? - falsetru