Skip to content

bug: [v4] rebuilding a trigger function and retriggering it does not start a new run (in development) #1956

@cachho

Description

@cachho

Provide environment information

System:
OS: Linux 5.15 Ubuntu 20.04.6 LTS (Focal Fossa)
CPU: (12) x64 AMD Ryzen 5 5600X 6-Core Processor
Memory: 6.32 GB / 15.59 GB
Container: Yes
Shell: 3.7.1 - /usr/bin/fish
Binaries:
Node: 18.20.8 - ~/.local/share/nvm/v18.20.8/bin/node
npm: 10.8.2 - ~/.local/share/nvm/v18.20.8/bin/npm
pnpm: 8.6.3 - ~/.local/share/pnpm/pnpm

Describe the bug

It looks like the idempotency key is keeping a function cached, even when it's content is updated / rebuilt.

Only tested in dev.

Reproduction repo

not available

To reproduce

  1. execute function (with idempotency key)
  2. log run id
  3. modify function
  4. execute again (with idempotency key)
  5. no new run (id remains the same)

Additional information

Console logs:

[next] 🚀 ~ POST ~ runId: cm9q7lz0r19dw1vom47kbopz7
[next]  POST /api/public/v2/metered/converter/convert-decrypt/task 200 in 1680ms
[trigger] ○ Apr 21, 24:19:14.580 ->  20250420.57 | serialize-and-decrypt-links | run_cm9q7lz0r19dw1vom47kbopz7.1
[trigger] ○ Rebuilding background worker...
[trigger] ○ Background worker ready [node] -> 20250420.58
[next] 🚀 ~ POST ~ runId: cm9q7lz0r19dw1vom47kbopz7
[next]  POST /api/public/v2/metered/converter/convert-decrypt/task 200 in 1458ms

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions