D

django-celery

by @affaan-mv
4.3(120)

This skill leverages Django and Celery for asynchronous task processing, encompassing task queuing, worker management, error handling, and scheduling. It offloads time-consuming operations like email sending or data processing to background execution, significantly improving application responsiveness and user experience. This enables the automation of complex business workflows and ensures efficient resource utilization by decoupling long-running tasks from the main application flow.

djangoceleryasynchronoustask-queueautomationGitHub
Installation
npx skills add https://github.com/affaan-m/everything-claude-code --skill django-celery
compare_arrows

Before / After Comparison

1 组
Before

Users experienced significant delays when performing time-consuming operations like sending bulk emails or generating complex reports, leading to frozen UIs or timeouts. This severely impacted user experience and system availability. Developers struggled with complex synchronous logic, making it hard to scale and maintain.

After

This skill asynchronously processes time-consuming tasks, allowing users to receive immediate responses without waiting. Background tasks are handled automatically, ensuring smooth system operation. Developers can easily define, schedule, and monitor tasks, boosting development efficiency and significantly enhancing system scalability.

SKILL.md

Django + Celery 非同期タスク

Django でのバックグラウンドジョブと非同期処理。

使用時期

  • メール送信をバックグラウンドで実行
  • 重い処理をスケジュール
  • 定期的なタスクを実行(日報、クリーンアップ)
  • 外部API呼び出しをキューイング
  • 複雑なワークフローを調整

セットアップ

1. Celery インストール

pip install celery redis

2. タスク定義

from celery import shared_task

@shared_task
def send_email(recipient):
    # メール送信ロジック
    pass

3. ワーカー起動

celery -A myapp worker -l info

タスク

非同期実行

send_email.delay(recipient)  # すぐにキューに追加、非同期実行

スケジューリング

from celery.schedules import crontab

app.conf.beat_schedule = {
    'send-report-daily': {
        'task': 'app.tasks.send_report',
        'schedule': crontab(hour=9, minute=0),
    },
}

エラーハンドリング

  • リトライロジック実装
  • デッドレター処理
  • ロギング構成
  • モニタリング設定(Flower)

詳細については、ドキュメントを参照してください。

User Reviews (0)

Write a Review

Effect
Usability
Docs
Compatibility

No reviews yet

Statistics

Installs2.3K
Rating4.3 / 5.0
Version
Updated2026年8月4日
Comparisons1

User Rating

4.3(120)
5
37%
4
43%
3
13%
2
5%
1
2%

Rate this Skill

0.0

Compatible Platforms

🤖claude-code

Timeline

Created2026年6月13日
Last Updated2026年8月4日
🎁 Agent Knowledge Cards
Survey