Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →DjangoおよびCeleryを使用した非同期タスク処理。タスクキューイング、ワーカー管理、エラー処理、スケジューリング。Redis/RabbitMQ ブローカー統合。
| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-13 | ✓→✗ | ▼ Worse | -40% | 0% |
| case-14 | ✓→✗ | ▼ Worse | -50% | 0% |
| case-02 | ✓→✓ | = Same ✓ | 60% | 0% |
| case-03 | ✓→✓ | = Same ✓ | 62% | 0% |
| case-09 | ✓→✓ | = Same ✓ | -38% | 0% |
Django でのバックグラウンドジョブと非同期処理。
bashpip install celery redis
pythonfrom celery import shared_task @shared_task def send_email(recipient): # メール送信ロジック pass
bashcelery -A myapp worker -l info
pythonsend_email.delay(recipient) # すぐにキューに追加、非同期実行
pythonfrom celery.schedules import crontab app.conf.beat_schedule = { 'send-report-daily': { 'task': 'app.tasks.send_report', 'schedule': crontab(hour=9, minute=0), }, }
詳細については、ドキュメントを参照してください。
Other measured skills in the registry, with their headline benchmark lift.