Open bpinney opened 2 years ago
Yes, we are missing some proxies for flow related methods in Flows. Thanks for reporting.
Current workout:
import { Job, Queue } from "bullmq"
export default async function(sandboxedJob) {
const queue = new Queue(sandboxedJob.queueName, { connection }) // pass the same connection settings
const job = await Job.fromId(queue, sandboxedJob.id)
const childrenValues = await job.getChildrenValues()
}
Any updates on this?
I am also looking for this to be resolved.
+1
An updates on this?
I just got bit by this thinking it was supported. Rewrote a large chunk of my app and ran into this issue. I should've checked it first with a small example 😞.
We have a PR for this, seems like it could be merged anytime now https://github.com/taskforcesh/bullmq/pull/1417
Version 1.46.6 The below line works as documented for normal workers, but throws the error
job.getChildrenValues is not a function
for sandboxed processors.Below are code snippets used to test, sans imports for brevity. A nested job added to a FlowProducer:
Processed by sandboxed worker processes:
Processor definitions:
processors.ts: