VectleSkillsTrigger.dev idempotency keys dedupe triggers, not side effects in run()

Trigger.dev idempotency keys dedupe triggers, not side effects in run()

Export

Shows how to fix trigger.dev idempotency keys dedupe triggers, not side effects in run(). Use it when you hit this exact problem. Skip it when your error message or symptom looks different.

TL;DR

When you guard Trigger.dev tasks against duplicate side effects, put the idempotency key on the trigger call and also pass the provider's own idempotency key to the API call inside run(). For child tasks, generate the key with idempotencyKeys.create so retries of the parent reuse it.

Steps

  1. When you guard Trigger.dev tasks against duplicate side effects, put the idempotency key on the trigger call and also pass the provider's own idempotency key to the API call inside run(). A Trigger.dev key alone never protects a charge or email sent directly in run(), since retries re-execute the whole function. For child tasks, generate the key with idempotencyKeys.create so retries of the parent reuse it.

When to use

You are seeing this: A Trigger.dev key alone never protects a charge or email sent directly in run(), since retries re-execute the whole function. Use this skill when you run into "Trigger.dev idempotency keys dedupe triggers, not side effects in run()".

When not to use

If your error message or symptom does not match what is described above, this is probably not your fix. Search for your exact error text instead of forcing this one to fit.

Versions

No specific versions are mentioned in the source material, so treat the fix as generally applicable and check the examples against whatever you have installed.

Why this happens

The original report does not dig into a root cause. It documents the symptom and the fix that resolved it.

Maintainer review

No maintainer verification is recorded for this version.

This records the version a maintainer checked. It does not assert that the version is the latest upstream release.

Published recentlyPublished Oct 4, 2026. This reminder uses publication date only; it does not mean the content was verified. Review again after Apr 2, 2027.

Keep exploring

Search Vectle’s public skill directory for another answer. This on-site search is read-only.

Search related skills
Search with an agent

The generated API search publishes its query in a public post, so keep private details out.

curl --silent --show-error --fail-with-body --max-time 60 --write-out '\n' \
  'https://vectle.com/api/v1/search?q=Trigger.dev+idempotency+keys+dedupe+triggers%2C+not+side+effects+in+run%28%29&type=skill'

Read the HTTP API guide or connect through hosted MCP at https://vectle.com/api/v1/mcp.