-
Notifications
You must be signed in to change notification settings - Fork 98
Open
Description
Environment
- Next.js: 15.5.6
- Workflow Devkit: 4.0.1-beta.12
Issue
Workflows with custom hook tokens cannot be rerun. After first completion, attempting to rerun with the same token fails with:
Workflow "wrun_01K9SDEB1B6A1JZHH..." has status "completed", skipping
Reproduction
"use workflow";
// First run - works
const hook = createHook({
token: `slack_messages:${channelId}`
});
const result = await hook;
// Resume
await resumeHook(`slack_messages:${channelId}`, slackEvent);
// Second run with same channelId - fails with "completed" statusExpected
Should be able to rerun workflows with the same custom token multiple times, with each creating a new workflow instance.
Question
Is this intended behavior? The docs example uses stable identifiers (like channel IDs) which suggests tokens should be reusable. How should recurring workflows with deterministic tokens be handled?
Metadata
Metadata
Assignees
Labels
No labels