running python management command ( process_tasks ) in th e background

568 views
Skip to first unread message

Sampath Reddy

unread,
Oct 15, 2019, 6:22:21 AM10/15/19
to django...@googlegroups.com
Hi All,

Follow up doubt on django server readiness check,

Current django production application runs continuously in the background as we have daemonized the runserver command from uwsgi module.

Now after staring the django server , now want to run python manage.py process_tasks in the background just like the main django server. How can we achieve this? [ not using supervisord ]

Thanks in advance.

Andréas Kühne

unread,
Oct 15, 2019, 8:42:30 AM10/15/19
to django...@googlegroups.com
Hi,

You can't really do that in that fashion. There are however other ways to achieve this.

1. You can add crontab task and run the tasks on the cron schedule.
2. You can add django celery to add scheduled tasks within a celery queue.

Also, so you know - there are many major sites running django currently (the most prominent being youtube and instagram). So there is always a way to do everything in django :)

Regards,

Andréas


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAErixQ1%3DN57%3DKtPjnUxwGHotGZPwjbprVdNYoYp-v__MrjzfNA%40mail.gmail.com.
Reply all
Reply to author
Forward
0 new messages