Running 30s test @ http://rpi:5000/api/v1/url/aaaa
12 threads and 400 connections
Thread Stats Avg Stdev Max +/- Stdev
Latency 489.29ms 196.29ms 1.38s 82.02%
Req/Sec 68.43 31.64 192.00 72.98%
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| from django.conf import settings | |
| from django.core.mail import send_mail | |
| from django.template import Engine, Context | |
| from myproject.celery import app | |
| def render_template(template, context): | |
| engine = Engine.get_default() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| send_mail_task.delay(('noreply@example.com', ), 'Celery cookbook test', 'test', {}) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| CELERY_TASK_ROUTES = { | |
| 'myproject.apps.mail.tasks.send_mail_task': {'queue': 'mail', }, | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| celery -A myproject worker -l info -Q celery | |
| celery -A myproject worker -l info -Q mail |
OlderNewer