Inngest changelog

Timeouts: cancel unstarted or long-running functions automatically

changelog cover

Inngest's SDKs now support a new timeouts configuration, which lets you automatically cancel functions based off of two durations:

  • timeouts.start lets you specify a duration that automatically cancels queued runs that haven't started, limiting how long a new run can stay unstarted in the queue.

  • timeouts.finish lets you specify a duration that automatically cancels started runs, limiting runs to a maximum duration

As an example, if you push thousands of throttled jobs into a queue you may want to automatically cancel any unstarted jobs after an hour by setting timeouts.start to 1h.

Read the docs here (link).