Re: Serializing forms and formsets to pass to Celery task

2020-02-29 Thread Integr@te System
Hi Bernd, You could take a look at serializers section on Note part, for more information, and may be your own answer. http://docs.celeryproject.org/en/master/userguide/calling.html#calling-serializers On Sat, Feb 29, 2020, 23:56 Naveen Arora wrote: > Yes that would work well. You can alwa

Re: Serializing forms and formsets to pass to Celery task

2020-02-29 Thread Naveen Arora
Yes that would work well. You can always find a completely different way of achieving what you are trying to achieve. On Saturday, 29 February 2020 18:52:24 UTC+5:30, Jason wrote: > > As said before, you really can't do that too well with celery. Its a good > practice to keep the message body b

Re: Serializing forms and formsets to pass to Celery task

2020-02-29 Thread Jason
As said before, you really can't do that too well with celery. Its a good practice to keep the message body between django -> broker -> worker to be as small as possible because we don't know what your configuration for the broker is. In addition, you should never, ever, put sensitive informat

Re: Serializing forms and formsets to pass to Celery task

2020-02-28 Thread Naveen Arora
Hi Bernd, You can't serialize a form data object this way. All the solution i can see is to save data temporarily and use it. Cheers, On Friday, 28 February 2020 14:58:50 UTC+5:30, Bernd Wechner wrote: > > I'm using Celery quite effectively with Django as many are. It's just > awesome for runni

Serializing forms and formsets to pass to Celery task

2020-02-28 Thread Bernd Wechner
I'm using Celery quite effectively with Django as many are. It's just awesome for running time consuming background tasks, and providing progress bar updates to a web page. Love it. Now I would like a celery task to do some form processing. That is in a Django view, where I have access to the f