Search code examples
redisnode-red

Redis GET in Node-RED


enter image description hereI 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! enter image description here


Solution

  • Looking at the source code for the node, it expects parameters to be in msg.payload and will not use any other fields