Celery Running Environment
Posted 庄泽波の博客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Celery Running Environment相关的知识,希望对你有一定的参考价值。
After running celery in my machine, I got this:
Running a worker with superuser privileges when the worker accepts messages serialized with pickle is a very bad idea! If you really want to continue then you have to set the C_FORCE_ROOT environment variable (but please think about this before you do).
Solution 1:
from celery import Celery, platforms app = Celery(‘tasks‘, broker=‘amqp://myuser:[email protected]:5672/vhost‘) platforms.C_FORCE_ROOT = True @app.task def add(x, y): return x, y
Solution 2:
export C_FORCE_ROOT="true"
以上是关于Celery Running Environment的主要内容,如果未能解决你的问题,请参考以下文章
powershell 来自http://blogs.msdn.com/b/cesardelatorre/archive/2015/01/13/automating-windows-environmen
powershell 来自http://blogs.msdn.com/b/cesardelatorre/archive/2015/01/13/automating-windows-environmen
The APR based Apache Tomcat Native library which allows optimal performance in production environmen
c#中退出WinForm程序包括有很多方法,如:this.Close(); Application.Exit();Application.ExitThread(); System.Environmen
The APR based Apache Tomcat Native library which allows optimal performance in production environmen