idempotencyKey twice, the second request will not create a new task run.
idempotencyKey option
You can provide an idempotencyKey to ensure that a task is only triggered once with the same key. This is useful if you are triggering a task within another task that might be retried:
idempotencyKeys.create SDK function to create an idempotency key before passing it to the options object.
We automatically inject the run ID when generating the idempotency key when running inside a task by default. You can turn it off by passing the scope option to idempotencyKeys.create:
idempotencyKeys.create SDK function to create an idempotency key.
idempotencyKey option, without first creating it with idempotencyKeys.create.
Make sure you provide sufficiently unique keys to avoid collisions.
idempotencyKey when calling batchTrigger as well:

