作者:手机用户2502872795 | 来源:互联网 | 2023-09-25 12:49
Oddissuesoverhere.IvebeendevelopingaDjangoapplicationandIamnowtryingtoimplementCel
Odd issues over here. I've been developing a Django application and I am now trying to implement Celery. I need both normal tasks and periodic tasks to be queued. I can start up celeryd just fine, and execute tasks with it (I start it with the command python manage.py celeryd start --settings=settings --loglevel=INFO
).
奇怪的问题在这里。我一直在开发Django应用程序,现在正在尝试实现芹菜。我需要正常的任务和周期性的任务来排队。我可以很好地启动celeryd,并使用它执行任务(我从命令python管理开始。py celeryd start—settings=settings—loglevel=INFO)。
On Windows you can't do -beat
/-b
to enable beat mode; you need to start celerybeat as a separate service (this is stated in the FAQ section of the Celery docs). If I type this into the command line -- python manage.py celerybeat -s djcelery.schedulers.DatabaseScheduler --settings=settings --loglevel=INFO
-- I get an error like this:
在Windows上,你不能使用-beat/-b来启用beat模式;您需要将celerybeat作为一个单独的服务启动(这在芹菜文档的FAQ部分中有说明)。如果我将它输入到命令行——python管理。py celerybeat - s djcelery.schedulers。DatabaseScheduler—设置=设置—loglevel=INFO—我得到这样一个错误:
[2012-01-02 19:06:52,009: WARNING/MainProcess] ERROR: Pidfile (celerybeat.pid) a
lready exists.
Seems we're already running? (PID: 2364)
[2012-01-02 19:06:52,012: INFO/MainProcess] process shutting down
and celerybeat never actually starts. So I can't execute any periodic tasks ... Any ideas? I only found one other page where somebody highlighted a similar error, but no solution was offered.
而赛扬节奏从未真正开始过。所以我不能执行任何周期性的任务……什么好主意吗?我只找到了另一个页面,有人突出显示了类似的错误,但没有提供解决方案。
If there's any further information needed, please let me know. I'm baffled because I can't find any information on this subject, and I've been trying solve this problem all day today ... Thank you.
如果需要进一步的信息,请告诉我。我很困惑,因为我找不到关于这个问题的任何信息,我今天一整天都在试图解决这个问题……谢谢你!
2 个解决方案