Skip to content

[TRI-929] Send a warning log when a duplicate key is encountered in a Run. #272

Description

@matt-aitken

It's important to have unique keys (see Resumability guide) for Tasks.

Inside a run() call we should keep a track of all the keys, using a Set. If a key already exists we should send a log warning to the server (using the existing log tasks, e.g. io.logger.warn()).

Ideally this would have some info to make it easy to fix. At the very least it should have the key name that is duplicated.

You used the same key more than once: "whatever-key-name"

From SyncLinear.com | TRI-929

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/serverIssues related to the Trigger.dev serverbugSomething isn't working

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions