Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 483 Bytes

File metadata and controls

16 lines (14 loc) · 483 Bytes
@basicblock/trigger-core patch
@basicblock/trigger-sdk patch

Add maxDelay option to debounce feature. This allows setting a maximum time limit for how long a debounced run can be delayed, ensuring execution happens within a specified window even with continuous triggers.

await myTask.trigger(payload, {
  debounce: {
    key: "my-key",
    delay: "5s",
    maxDelay: "30m", // Execute within 30 minutes regardless of continuous triggers
  },
});