Skip to content

[Bug]: missing getDependencies and getDependenciesCount proxy support for sandboxed/worker thread processors #3533

@x-etienne

Description

@x-etienne

Version

v5.63.0

Platform

NodeJS

What happened?

When using sandboxed processors, the Job object lacks proxy support for getDependencies() and getDependenciesCount() methods, causing a "getDependencies is not a function" runtime error.

The getChildrenValues() method already has proxy support (added in commit dcc3b06), but getDependencies() and getDependenciesCount() are missing.

How to reproduce.

export default async function(job) {
    // ✅ Works - proxy exists
    const childrenValues = await job.getChildrenValues();

    // ❌ TypeError: job.getDependencies is not a function
    const deps = await job.getDependencies();

    // ❌ TypeError: job.getDependenciesCount is not a function
    const depsCount = await job.getDependenciesCount();
  }

Relevant log output

Code of Conduct

  • I agree to follow this project's Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions