[Answered ]-How to run django cron job with which function

2๐Ÿ‘

โœ…

you may consider celery and rabbitmq

the idea is: in your app you create a file called tasks.py and there you put the code:

# tasks.py
from celery import task

@task
def your_task_for_async_job(data):
    # todo

just call the function and it does the job for you asyncly..

Here is the documentation for Celery, you find there also how to set it up with django etc..

hope, this helps

๐Ÿ‘คdoniyor

Leave a comment