TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

A Celery-like Python Task Queue in 55 Lines of Code

60 pointsby jknuppover 11 years ago

9 comments

m0th87over 11 years ago
For an alternative, check out RQ: <a href="http://python-rq.org/" rel="nofollow">http:&#x2F;&#x2F;python-rq.org&#x2F;</a><p>We use it in production and it&#x27;s been rock-solid. The documentation is sparse but the source is easy to follow.
评论 #7219610 未加载
评论 #7218709 未加载
agentultraover 11 years ago
I&#x27;d recommend looking at alternative serialization formats. Pickle is a security risk that programmers writing distributed systems in Python should be educated about.
评论 #7218515 未加载
cschmidtover 11 years ago
<p><pre><code> Having a way to pickle code objects and their dependencies is a huge win, and I&#x27;m angry I hadn&#x27;t heard of PiCloud earlier. </code></pre> That&#x27;s a nice use of the cloud library, without using the PiCloud service. Unfortunately, the PiCloud service itself is shutting down on February 25th (or thereabouts).
评论 #7218248 未加载
tonymillionover 11 years ago
Although Celery can use it, why is Amazon SQS treated as a second class citizen in python background worker systems?<p>I&#x27;ve yet to find&#x2F;see a background worker pool that played nicely (properly) with SQS.
dangayleover 11 years ago
Thanks Jeff. As someone else mentioned, I love these little projects that demonstrate the basics of what the big projects actually do. Makes it much easier to understand the big picture.
评论 #7219948 未加载
estover 11 years ago
<a href="http://docs.python.org/2/library/multiprocessing.html#sharing-state-between-processes" rel="nofollow">http:&#x2F;&#x2F;docs.python.org&#x2F;2&#x2F;library&#x2F;multiprocessing.html#sharin...</a><p>Why don&#x27;t anyone build Celery <i>and</i> Redis alternative using this?
评论 #7218324 未加载
评论 #7219859 未加载
评论 #7218560 未加载
thrufloover 11 years ago
I scratched an itch in this space to create, in Python, a web hook task queue. I wrote it up here <a href="http://ntorque.com" rel="nofollow">http:&#x2F;&#x2F;ntorque.com</a> -- would love to know if the rationale makes sense...
jbaiterover 11 years ago
Are there any non-distributed task queues for Python? I need something like this for a tiny web application that just needs a queue for background tasks that is persisted, so tasks can resume in case the application crashes&#x2F;restarts. Installing Redis or even ZeroMQ seems kind of excessive to me, given that the application runs on a Raspberry Pi and serves maximum 5 users at a time.
评论 #7219192 未加载
评论 #7220038 未加载
评论 #7218599 未加载
评论 #7220013 未加载
评论 #7219136 未加载
rchover 11 years ago
I like these one-off projects that Jeff is doing, but it would be particularly instructive to see one, or a combination, make it to &#x27;real&#x27; status.
评论 #7218837 未加载