Saturday, February 29, 2020

Re: Serializing forms and formsets to pass to Celery task

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 information in a message, just the identifier of a thing and let celery/django pull from a data store when the task starts.

what I would do is save the form data to some intermediate data store, and pass in the identifier to the celery task for retrieval.  That ensures your data integrity and security is high.

--
You received this message because you are subscribed to the Google Groups "Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/b5cc2ff0-a4f4-4522-a562-770d392a60a9%40googlegroups.com.

1 comment:

  1. Your Affiliate Money Making Machine is waiting -

    And earning money online using it is as easy as 1..2..3!

    Here is how it all works...

    STEP 1. Choose affiliate products the system will push
    STEP 2. Add PUSH button traffic (it LITERALLY takes 2 minutes)
    STEP 3. See how the system grow your list and up-sell your affiliate products on it's own!

    So, do you want to start making profits???

    Click here to activate the system

    ReplyDelete