📢 Job
We are launching Job
— a simple way to run functions that can take up to 8 hours in SST:
-
Construct to define the infrastructure
new Job(stack, "MyJob", { handler: "jobs/myJob.handler", timeout: "8 hours" }
-
Lambda handler to create the job
const handler = JobHandler("MyJob", payload => { // Some long running code })
-
Typesafe client to invoke the job
await Job.run("MyJob", { payload: { foo: "bar" } })
Learn more https://docs.sst.dev/long-running-jobs
Changes
Update using:
$ npx sst update v1.15.0
$ yarn sst update v1.15.0