Skip to content

Commit

Permalink
Update changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
gearnode committed Jun 29, 2023
1 parent 2d51af9 commit 4646cd0
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .changeset/spicy-crabs-drop.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
"@defer/client": minor
---

Introducing `maxDuration` support

`defer()` exposes a new `maxDuration` configuration:

```ts
const importContacts = (companyId: string, contacts: Contact[]) => {
// ...
};

export default defer(importContacts, {
maxDuration: 10, // timeout after 10secs
});
```

BREAKING CHANGE: `maxDuration` has a default value to 30min. Users having executions going over this limit can override it with a higher value `{ maxDuration: 3600 }`

0 comments on commit 4646cd0

Please sign in to comment.