Premium Only Content
This video is only available to Rumble Premium subscribers. Subscribe to
enjoy exclusive content and ad-free viewing.
Asynchronous Tasks: Celery is Not Just For Soups Anymore
1 year ago
30
Technology
Tech Reviews
django
celery
redis
django celery redis
async
asynchronous tasks
tasks
web developer
backend development
Run asynchronous tasks with Django, using Django & Celery.
You can use background tasks for things like image processing, text processing, external API calls, and more.
example/celery.py:
import os
from celery import Celery
from django.conf import settings
from celery import shared_task
os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'example.settings')
app = Celery('example')
app.config_from_object('django.conf:settings', namespace='CELERY')
@shared_task
def my_task(arg1, arg2):
result = arg1 + arg2
return result
example/__init__.py:
from .celery import app as celery_app
__all__ = ["celery_app"]
Looking for help building your site? Need web hosting? Come check us out!
Loading 1 comment...
-
LIVE
Nerdrotic
14 hours ago $6.41 earnedWarner Bros Fire Sale! | Last Ronin CANNED | WICKED For Good REVIEW - Friday Night Tights 381
1,387 watching -
LIVE
Akademiks
51 minutes agoMeg Thee Stallion Back LYING again? Offset vs Finesse2x. 6ix9ine house robbed.. HERES WHO DID IT
817 watching -
LIVE
SpartakusLIVE
1 hour agoFriday Night HYPE w/ YOUR King of Content
99 watching -
LIVE
Blabs Life
37 minutes agoPeter Jackson's King Kong: The Official Game of the Movie | Noob Plays
64 watching -
LIVE
sim_n_shift
1 hour agoARC Raiders: Dropping Into the Chaos
80 watching -
1:19:28
Kim Iversen
3 hours agoNetanyahu Reveals Yep, Epstein Worked For Israel
11.9K51 -
1:55:00
Roseanne Barr
3 hours agoJovan Pulitzer Is Back! | The Roseanne Barr Podcast #124
168K88 -
1:35:41
vivafrei
5 hours agoDemonizing Nick Fuentes into the Mainstream! Live with Jake Lang! Miranda Divine Guest & MORE!
73.8K71 -
5:13
Buddy Brown
8 hours ago $4.07 earnedMuslim PATROL CARS Begin Monitoring NYC! | Buddy Brown
13.3K31 -
12:54
MetatronGaming
4 hours agoYou Remember Super Mario WRONG and I can Prove it
20.1K7