Skip to content

bug: [v4] parent function where all sub tasks are cached runs forever #1957

Open
@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

I have a trigger function that calls multiple child trigger functions.
They are all cached. It now runs forever.

Image

The child tasks don't have runs:

Image

Which you also see when going through the batch menu, it's running forever,

Image

But clicking a batch shows no runs.

Image

Reproduction repo

not available

To reproduce

The child tasks are triggered with

      const results = await decryptLink.batchTriggerAndWait(
        linksInChunk.map((link) => ({
          payload: { link: link! },
          options: {
            idempotencyKey: link!,
            idempotencyKeyTTL: '1d',
          },
        }))
      );

Only tested in development.

Additional information

It could be a problem with how the parent function works or caching or the batch trigger itself.

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