I'm using a Parse Cloud Job
to send e-mails to all our ~1000 of users with Mandrill right now. Currently, I use a Parse.Cloud.httpRequest
like so:
function sendNewsletterWithMandrill(info) {
var mandrillBody = computeMandrillBodyFromInfo(info); // takes a while per user
return Parse.Cloud.httpRequest({
method: 'POST',
headers: {
'Content-Type': 'application/json;charset=utf-8'
},
url: 'https://mandrillapp.com/api/1.0/messages/send-template.json',
body: mandrillRequestBody
});
};
I want test that this implementation runs within the 15 minutes for wall-clock time limit that Parse Cloud Job
s have.
i.e. I want my code to take the time to compute the e-mail body, and actually perform the request, but NOT actually send the e-mail.
How can I achieve this? Cheers.