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

A method to get the child values when using flows in Python #2736

Open
lahdekorpi opened this issue Aug 26, 2024 · 2 comments
Open

A method to get the child values when using flows in Python #2736

lahdekorpi opened this issue Aug 26, 2024 · 2 comments

Comments

@lahdekorpi
Copy link

I tried to mix Node.js and Python for a complex flow with multiple children and grandchildren, passing the data using job.getChildrenValues successfully between Node.js workers.

But that method doesn't exist in Python? Is there an alternative to fetch the data produced by the child?

@lahdekorpi
Copy link
Author

At the moment I just hacked it together with this:

conn = job.queue.client
# Construct the processed key
processed_key = f"bull:{job.queue.name}:{job.id}:processed"
# Fetch data from Redis using the processed key
processed_data = await conn.hgetall(processed_key)

It works but this is amazingly hackish.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants
@lahdekorpi and others