Methods

done()

has to be called when the Cloud Job is finished (every Cloud Job has 10 seconds to run, this is the maximal duration of it's lifespan, which ends when you call done() in your code to end your task cleanly)

log(message: string)

You can find the logs of a Cloud Job to the right of it's name in the list of Cloud Job.

Parameters:
Name Type Description
message string

The text to be logged (if not a string, will be converted to one)

setTimeout(callback: function, timeout: integer)

Parameters:
Name Type Description
callback function
timeout integer

The timeout in seconds