Skip to content

Vouch request from GautamBytes #3307

@GautamBytes

Description

@GautamBytes

Why do you want to contribute?

I’d like to contribute a fix for #3304, which is about per-item debounce options getting dropped in task.batchTriggerAndWait([...]) when the input is an array.

I reviewed the issue, traced the relevant SDK path, and I’m working on a focused fix with regression tests. I’d like to send a small PR that only addresses this issue.

Prior contributions or relevant experience

I’ve worked quite a bit in TypeScript and open source, especially around backend and SDK-style code. I’ve also contributed to Better Auth and a few other OSS projects, so I’m comfortable making scoped fixes, working in established codebases, and adding tests for regressions.

For this Trigger.dev issue, my approach was to compare the array and async iterable batchTriggerAndWait paths, confirm that the async iterable path already forwards debounce correctly, and isolate the mismatch in the array serializer in packages/trigger-sdk/src/v3/shared.ts. I also added focused regression tests for both task(...).batchTriggerAndWait([...]) and tasks.batchTriggerAndWait(id, [...]) so the behavior is covered clearly.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions