You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
//From your backend code - you need to know the parent run ID
436
+
//If the key was created within a task, you need the parent run ID
437
437
awaitidempotencyKeys.reset("my-task", "my-key", {
438
438
scope: "run",
439
439
parentRunId: "run_abc123"
440
440
});
441
441
```
442
442
443
+
<Note>
444
+
If you triggered the task from backend code, all scopes behave as global (see [Triggering from backend code](#triggering-from-backend-code)). Use `scope: "global"` when resetting.
445
+
</Note>
446
+
443
447
### Resetting attempt-scoped keys
444
448
445
449
Keys created with `"attempt"` scope include both the parent run ID and attempt number. When resetting from outside a task, you must provide both:
0 commit comments