Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐛 BUG: Fatal uncaught kj::Exception: kj/table.c++:49: failed: inserted row already exists in table while trying to run multiple workflows locally #7127

Closed
AggressivelyMeows opened this issue Oct 30, 2024 · 3 comments · Fixed by #7286
Assignees
Labels
bug Something that isn't working workflows

Comments

@AggressivelyMeows
Copy link

Which Cloudflare product(s) does this pertain to?

Workers Runtime, Wrangler, Other

What version(s) of the tool(s) are you using?

3.83.0

What version of Node are you using?

No response

What operating system and version are you using?

Linux

Describe the Bug

Observed behavior

Wrangler crashes with a kj::Exception when you have more than one workflow setup in wrangler.toml.

Expected behavior

Both workflows work

Steps to reproduce

  • Setup a worker with two workflows.
  • Add both workflows to wrangler.toml
  • exception when running in dev

Works:

[[workflows]]
name = "photosIngestWorkflow"
binding = "photosIngestWorkflow"
class_name = "photosIngestWorkflow"

Does not work, with crash:

[[workflows]]
name = "photosIngestWorkflow"
binding = "photosIngestWorkflow"
class_name = "photosIngestWorkflow"

[[workflows]]
name = "photosLooperWorkflow"
binding = "photosLooperWorkflow"
class_name = "photosLooperWorkflow"

Please provide a link to a minimal reproduction

No response

Please provide any relevant error logs

Fatal uncaught kj::Exception: kj/table.c++:49: failed: inserted row already exists in table stack: /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5b41f0f /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@322a850 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@322a744 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@2eaf016 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@2eb9126 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@2e898b8 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@2e87295 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@2e75bdf /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5b3594a /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5b35d7b /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5b33cb8 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@5b339c3 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@2e61af3 /lib/x86_64-linux-gnu/libc.so.6@24082 /home/codespace/.npm/_npx/d77349f55c2be1c0/node_modules/@cloudflare/workerd-linux-64/bin/workerd@2e6102d

@AggressivelyMeows AggressivelyMeows added the bug Something that isn't working label Oct 30, 2024
@github-project-automation github-project-automation bot moved this to Untriaged in workers-sdk Oct 30, 2024
@LuisDuarte1 LuisDuarte1 changed the title 🐛 BUG: Fatal uncaught kj::Exception: kj/table.c++:49: failed: inserted row already exists in table 🐛 BUG: Fatal uncaught kj::Exception: kj/table.c++:49: failed: inserted row already exists in table while trying to run multiple workflows locally Oct 30, 2024
@flash716
Copy link

flash716 commented Nov 5, 2024

I have the same issue. Makes it very hard to develop workflows that call other workflows.

@masylum
Copy link

masylum commented Nov 15, 2024

hitting the same issue here

@andyjessop andyjessop moved this from Untriaged to Backlog in workers-sdk Nov 15, 2024
@gmemstr
Copy link
Contributor

gmemstr commented Nov 15, 2024

If you experience the same issue, please react to the issue rather than leaving a comment so that those watching the issue and receiving notifications don't get notification fatigue :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something that isn't working workflows
Projects
Status: Done
Development

Successfully merging a pull request may close this issue.

6 participants