This document describes the current stable version of Celery (5.3). For development docs, go here. Celery - Distributed Task Queue¶ Celery is a simple, flexible, and reliable distributed system to process vast amounts of messages, while providing operations with the tools required to maintain such a system. It’s a task queue with focus on real-time processing, while also supporting task scheduling
なにこれ キューにタスクをガンガン貯めていって、ワーカーでサバサバ捌いていきたい時ってありますよね。 計算タスクとか、何かの大量デプロイ作業とかとか。 そういう仕組を作るとき、Pythonであればceleryが便利です。 ゴール これを読んだ人がPythonで簡単に非同期処理の仕組みを実現し、処理状況のモニタリングまで できること。 準備物 redisサーバー (メモリ上で動作する揮発性KVS) celery (非同期処理の仕組みを提供するもの) flower (celeryのextentionで監視するやつ) import tasks print('<first task>') # ここでタスク起動 (runタスク) worker = tasks.run.delay() # 終わらぬなら終わるまで待とうホトトギス while not worker.ready(): pass # 返り値を
This document describes the current stable version of Celery (5.4). For development docs, go here. Note Previous versions of Celery required a separate library to work with Django, but since 3.1 this is no longer the case. Django is supported out of the box now so this document only contains a basic way to integrate Celery and Django. You’ll use the same API as non-Django users so you’re recommend
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く