We already had the EmailNotification Kind, and it is used to track when a email was sent (with success/failure status).
Changes in it:
rule was removed since it isn't used and the value is null for all existing entities
subject and body was added to receive the email information
timestamp was added to track when the entity was created
Other changes were made in two points: push and execute
When pushing to queue, we copy the EmailConfig information into an EmailNotification entity and save it. Then, we pass just the ID as a parameter instead of all data.
Then, when executing the task, we just retrieve the information from Datastore and proceed.
Fix exception
IllegalArgumentException: Task size too large
.These exceptions appears at cron jobs when the payload is too large, and it occurs a lot since one of the arguments is a html email body.
The maximum task size is 100KB for push queues https://cloud.google.com/appengine/quotas#Task_Queue
We already had the EmailNotification Kind, and it is used to track when a email was sent (with success/failure status).
Changes in it:
rule
was removed since it isn't used and the value is null for all existing entitiessubject
andbody
was added to receive the email informationtimestamp
was added to track when the entity was createdOther changes were made in two points:
push
andexecute