I have a node with the following output:
{"task_id":"celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed","_msgid":"aca5b7a07ef39fb3"}
I want to pass this task_id to a Redis node "node-red-contrib-redis" to get the updates: I tried every combination in the Topic/Key field, like: {{msg.task_id}}, {{task_id}}, msg.task_id. But without any success! But when copy paste the task_id into the Topic/Key field it will work: like celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed. How to pass this dynamic value in the Redis node!
I have a node with the following output:
{"task_id":"celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed","_msgid":"aca5b7a07ef39fb3"}
I want to pass this task_id to a Redis node "node-red-contrib-redis" to get the updates: I tried every combination in the Topic/Key field, like: {{msg.task_id}}, {{task_id}}, msg.task_id. But without any success! But when copy paste the task_id into the Topic/Key field it will work: like celery-task-meta-d024fe34-eb5a-4493-829c-41f1877cffed. How to pass this dynamic value in the Redis node!
Share Improve this question edited Dec 3, 2024 at 20:31 Joker King asked Nov 20, 2024 at 0:00 Joker KingJoker King 234 bronze badges 4- Can you edit the question to confirm which Node-RED redis node you are using (node-red-node-redis?) – hardillb Commented Nov 21, 2024 at 21:09
- node-red-contrib-redis – Joker King Commented Nov 22, 2024 at 21:22
- Are you sure, because that doesn't match the screenshot – hardillb Commented Nov 23, 2024 at 7:42
- Sure, it is node-red-contrib-redis – Joker King Commented Dec 2, 2024 at 16:45
1 Answer
Reset to default 1Looking at the source code for the node, it expects parameters to be in msg.payload
and will not use any other fields