Using Django's ORM in a Celery Task -
Using Django's ORM in a Celery Task -
how can celery task have access django database-abstraction api? need coded scratch using 1 of strategies stand-alone django orm usage, or there more streamlined, built-in way or mutual practice?
it seems nobody asking question. however, me, it's fundamental.
this example implies it's no big deal, can explain how session management , orm scoping works between celery , django?
by default celery pickles task parameters. django model instances can pickled too.
the grab pickling model instance taking snapshot of at time. unpickling doesn't touch database.
whether or bad depends, suppose, on needs. tend send primary key tasks , re-query object in question.
django django-models celery django-celery
Comments
Post a Comment