Task code
Last updated
Last updated
Task code is the soul for each Shypard task. When a task is triggered, the javascript code for the task will be executed.
The default task code is a single index.js
file as follows. The index.js
is the entry point for each task, and need to export an async handler function.
The exported function is used to handle the task execution. It contains 2 parameters
event
: The event object which is based on the trigger type
options
: task option object
platform
library?Great question! platform
is the javascript SDK library available within Shypyard execution environment. It offers utility function to interact with the integrated services and also platform services like Shypyard database, file storage and email.