Hi Matija, The size of a task includes the url, headers and http body (and around 100 bytes used by the internal serialization library).
On 15 February 2011 05:56, Matija Jerković <[email protected]> wrote: > There is not problem with task payload size. I only need to know > exactly what is limit. For me it is same to test if (task.length > > maxTaskSizeBytes()) or if (task.length > 10000). I am using Vince Bonfanti's > slightly modified Deferred class and if task payload size is > above maxTaskSizeBytes() it is stored in datastore. But task enqueue is > preferred operation instead of datastore store and delete statement. > Matija. > > On Mon, Feb 14, 2011 at 6:12 PM, Robert Kluin <[email protected]> > wrote: >> >> Hi Matija, >> The maximum task payload size is 10k. >> >> http://code.google.com/appengine/docs/java/taskqueue/overview.html#Quotas_and_Limits >> >> Try to compress your data or find a more efficient serialization >> method -- or both. In Python I use bzip to compress 'large' payloads. >> >> >> Robert >> >> >> >> >> >> >> On Mon, Feb 14, 2011 at 09:51, Matija <[email protected]> wrote: >> > What is exact meaning of this value: MAX_TASK_SIZE_BYTES = 10240 >> > I don't know if this was new issue with 1.4.2 or simply my >> > misunderstanding. >> > Does this means max task payload or something else ? If it is something >> > else >> > what is then max_task_payload_size and how can I calculate it ? >> > I want to enqueue task with 10192 bytes payload size and gae >> > throws java.lang.IllegalArgumentException: Task size too large >> > >> > -- >> > You received this message because you are subscribed to the Google >> > Groups >> > "Google App Engine" group. >> > To post to this group, send email to [email protected]. >> > To unsubscribe from this group, send email to >> > [email protected]. >> > For more options, visit this group at >> > http://groups.google.com/group/google-appengine?hl=en. >> > >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Google App Engine" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/google-appengine?hl=en. >> > > -- > You received this message because you are subscribed to the Google Groups > "Google App Engine" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/google-appengine?hl=en. > -- Greg Darke -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-appengine?hl=en.
