Celery

Celery

文章 95 浏览 171

在flask应用中使用celery任务队列,celery队列无法正常启动

最近在写一个flask应用,想使用celery做任务队列,就去flask官网上找了样例程序,然后复制到本机上执行了一下,结果celery没有正常启动. 只有一个源文件t…

安静 2022-09-01 06:28:04 13 0

Celery任务处理后可否回调处理?

celery返回数据后能否触发函数,比如写入到数据库,因为要直接写入应用数据库,所以不能用原来的数据存储. …

黑寡妇 2022-09-01 05:46:38 7 0

celery调度非python程序

celery是否能够调度非python的程序,比如用C/C++写的程序? …

南冥有猫 2022-09-01 05:31:41 23 0

torado,celery raise is not JSON serializable

代码就是这里了:https://github.com/mher/tornado-celery/ 报错: Traceback (most recent call last): File "/usr/local/lib/python2.7/dist-packa…

今天小雨转甜 2022-08-31 20:24:05 17 0

Pythonb包、模块引入问题?

blog|app/blog/__init__.py |app/blog/ppp.py | |facelery/__init__.py |fcelery/celery.py |fcelery/tasks.py 现在,ppp.py里面想使用tasks.py文件…

人心善变 2022-08-31 09:27:08 31 0

使用celery和redis遇到问题

'__main__.add'. The message has been ignored and discarded. Did you remember to import the module containing this task? Or maybe you are us…

全部不再 2022-08-31 09:25:27 8 0

用celery和redis构建消息队列的问题

是不是必须使用周期调用任务才能实现,我用无限循环从redis的list中读取消息任务会阻塞。改成celery周期调用任务就行了,不过redis里celery的条目不…

昔日梦未散 2022-08-29 21:09:40 7 0

Django+celery 写爬虫,celery 运行的时候显示总是在运行着 3 个进程,为什么?

Django 主要是用他的 orm 来操作数据库,celery 里面的 tasks 写爬虫逻辑,celery 的定时任务开启爬虫。 但是我不太明白的是定时任务是否开启,htop …

各空 2022-08-29 19:56:31 9 0

celery task装饰器能制定某一个队列或者指明routing_key么

from celery.task import task, periodic_task 在periodic_task中可以明确指明routing_key,使用flower查看也确实绑定了,task各种绑不上 #@task(rout…

一杆小烟枪 2022-08-29 18:18:23 8 0

flask celery 配置结构问题

脚手架是这样设置的 --project -- auth -- main -- templatesinit.py factory.py(create_app, make_celery) utils.py tasks.py ... 在tasks.py 里 fr…

心如荒岛 2022-08-28 11:38:43 7 0

celery怎么保证在同一时间只有一个特定task被执行?

专用worker,单并发?锁? …

岁月蹉跎了容颜 2022-08-28 00:43:34 4 0

celery worker没有正常执行task

情况是这样的,我在django项目里使用celery + django-celery + rabbitmq 来做异步任务,可是在调用func.delay(..)之后查看没有按照预想的执行,但是每…

长安忆 2022-08-27 11:49:05 13 0

celery异步任务队列有什么办法使带副作用的函数起作用吗?

使用celery的代码如下,我的本意是想创建一个A的实例,并且用celery异步处理inc函数。 class A(): def __init__(self): self.num = 0 def inc(self): …

谁把谁当真 2022-08-27 11:31:08 19 0

rabbitmq和celery的区别?

Celery: Distributed Task Queue Celery is an asynchronous task queue/job queue based on distributed message passing. It is focused on real-ti…

赠我空喜 2022-08-26 18:15:01 14 0

使用HttpRequest作为django-celery task时报错

我在用django-celery时尝试把httprequest作为参数调用task,结果保用一下错误,求解哪里粗错了? add_scan_record.delay(request, card.id) File "/Use…

夏了南城 2022-08-26 18:14:07 17 0
更多

推荐作者

不再见

文章 0 评论 0

真是无聊啊

文章 0 评论 0

樱娆

文章 0 评论 0

浅语花开

文章 0 评论 0

烛光

文章 0 评论 0

绻影浮沉

文章 0 评论 0

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文