如何在Django的终端后台启动celery [英] How to start celery in background of terminal in Django

查看:387
本文介绍了如何在Django的终端后台启动celery的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将芹菜作为

python manage.py celeryd

正在工作,但处于前台。然后要测试命令,我需要启动另一个终端并在其中进行操作。

It is working but in foreground . Then to test commands i need to start another terminal and do stuff there.

有什么方法可以在后台启动该终端。我尝试了这个

is there any way to start that in background. I tried this

python manage.py celeryd &

但是再次出现在前景中

推荐答案

您正在寻找 celeryd_detach ,该版本至少从2.4开始可用

You're looking for celeryd_detach, available since at least 2.4

python manage.py celeryd_detach

这篇关于如何在Django的终端后台启动celery的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆